Skip to content

Commit

Permalink
Bump ansys/actions from 7 to 8 (#714)
Browse files Browse the repository at this point in the history
* Bump ansys/actions from 7 to 8

Bumps [ansys/actions](https://github.com/ansys/actions) from 7 to 8.
- [Release notes](https://github.com/ansys/actions/releases)
- [Commits](ansys/actions@v7...v8)

---
updated-dependencies:
- dependency-name: ansys/actions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Remove Meilisearch and doc-deploy-index since deprecated with ansys-actions v8

* Updates to doc-deploy-stable and doc-deploy-dev inputs

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: paul.profizi <[email protected]>
  • Loading branch information
dependabot[bot] and PProfizi authored Oct 9, 2024
1 parent dbe15c5 commit 4d056b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,11 @@ jobs:
needs: [docs]
steps:
- name: "Upload development documentation"
uses: ansys/actions/doc-deploy-dev@v7
uses: ansys/actions/doc-deploy-dev@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
doc-artifact-name: HTML-doc-ansys-dpf-post.zip
decompress-artifact: true
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Running documentation style checks"
uses: ansys/actions/doc-style@v7
uses: ansys/actions/doc-style@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
27 changes: 4 additions & 23 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ on:

env:
DOCUMENTATION_CNAME: 'post.docs.pyansys.com'
MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}

jobs:

Expand Down Expand Up @@ -90,10 +88,12 @@ jobs:
path: HTML-doc-ansys-dpf-post.zip

- name: "Deploy the stable documentation"
uses: ansys/actions/doc-deploy-stable@v7
uses: ansys/actions/doc-deploy-stable@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
doc-artifact-name: HTML-doc-ansys-dpf-post.zip
decompress-artifact: true

Expand All @@ -112,25 +112,6 @@ jobs:
python3 -m venv .venv
.venv/bin/python -m pip install -e .
- name: "Get the version to PyMeilisearch"
run: |
VERSION=$(.venv/bin/python -c "from ansys.dpf.post import __version__; print('.'.join(__version__.split('.')[:2]))")
VERSION_MEILI=$(.venv/bin/python -c "from ansys.dpf.post import __version__; print('-'.join(__version__.split('.')[:2]))")
echo "Calculated VERSION: $VERSION"
echo "Calculated VERSION_MEILI: $VERSION_MEILI"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
- name: "Deploy the latest documentation index"
uses: ansys/actions/doc-deploy-index@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
index-name: pydpf-post-v${{ env.VERSION_MEILI }}
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
api-key: ${{ env.MEILISEARCH_API_KEY }}
doc-artifact-name: HTML-doc-ansys-dpf-post.zip
decompress-artifact: true

update_ansys_lab_examples:
uses: ./.github/workflows/ansys_lab.yml
needs: get_latest_tag
Expand Down

0 comments on commit 4d056b8

Please sign in to comment.