Skip to content

Commit 095d007

Browse files
authored
CI: Bump ansys actions to v9.0.12 (#1274)
1 parent 95139f5 commit 095d007

File tree

1 file changed

+22
-37
lines changed

1 file changed

+22
-37
lines changed

.github/workflows/ci_cd.yml

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Check the title of the pull request
36-
uses: ansys/actions/check-pr-title@v8
36+
uses: ansys/actions/check-pr-title@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
3737
with:
3838
token: ${{ secrets.GITHUB_TOKEN }}
3939
use-upper-case: true
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- name: Check documentation style
46-
uses: ansys/actions/doc-style@v8
46+
uses: ansys/actions/doc-style@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
4747
with:
4848
token: ${{ secrets.GITHUB_TOKEN }}
4949

@@ -54,12 +54,10 @@ jobs:
5454
fail-fast: false
5555
matrix:
5656
os: [ubuntu-latest, windows-latest]
57-
python-version: ['3.8', '3.9', '3.10', '3.11']
58-
should-release:
59-
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
57+
python-version: ['3.10', '3.11', '3.12']
6058
steps:
6159
- name: Build wheelhouse and perform smoke test
62-
uses: ansys/actions/build-wheelhouse@v8
60+
uses: ansys/actions/build-wheelhouse@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
6361
with:
6462
library-name: ${{ env.PACKAGE_NAME }}
6563
operating-system: ${{ matrix.os }}
@@ -370,14 +368,12 @@ jobs:
370368
pytest -v external/pyaedt/tests/system/solvers/test_45_workflows.py
371369
pytest -v external/pyaedt/tests/system/solvers/test_00_analyze.py
372370
373-
374-
375371
docs-build:
376372
name: Build documentation
377373
runs-on: ubuntu-latest
378374
steps:
379375
- name: Build documentation
380-
uses: ansys/actions/doc-build@v8
376+
uses: ansys/actions/doc-build@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
381377
with:
382378
dependencies: "graphviz texlive-latex-extra latexmk texlive-xetex texlive-fonts-extra"
383379
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -391,7 +387,7 @@ jobs:
391387
runs-on: ubuntu-latest
392388
steps:
393389
- name: Build library source and wheel artifacts
394-
uses: ansys/actions/build-library@v8
390+
uses: ansys/actions/build-library@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
395391
with:
396392
library-name: ${{ env.PACKAGE_NAME }}
397393
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -407,14 +403,23 @@ jobs:
407403
id-token: write
408404
contents: write
409405
steps:
410-
- name: Release to the public PyPI repository
411-
uses: ansys/actions/release-pypi-public@v8
406+
407+
- name: Download the library artifacts from build-library step
408+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
412409
with:
413-
library-name: ${{ env.PACKAGE_NAME }}
414-
use-trusted-publisher: true
410+
name: ${{ env.PACKAGE_NAME }}-artifacts
411+
path: ${{ env.PACKAGE_NAME }}-artifacts
412+
413+
- name: Release to PyPI using trusted publisher
414+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
415+
with:
416+
repository-url: "https://upload.pypi.org/legacy/"
417+
print-hash: true
418+
packages-dir: ${{ env.PACKAGE_NAME }}-artifacts
419+
skip-existing: false
415420

416421
- name: Release to GitHub
417-
uses: ansys/actions/release-github@v8
422+
uses: ansys/actions/release-github@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
418423
with:
419424
library-name: ${{ env.PACKAGE_NAME }}
420425
token: ${{ secrets.GITHUB_TOKEN }}
@@ -426,7 +431,7 @@ jobs:
426431
needs: [package]
427432
steps:
428433
- name: Deploy the latest documentation
429-
uses: ansys/actions/doc-deploy-dev@v8
434+
uses: ansys/actions/doc-deploy-dev@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
430435
with:
431436
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
432437
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
@@ -440,29 +445,9 @@ jobs:
440445
needs: [release]
441446
steps:
442447
- name: Deploy the stable documentation
443-
uses: ansys/actions/doc-deploy-stable@v8
448+
uses: ansys/actions/doc-deploy-stable@5dc39c7838f50142138f7ac518ff3e4dca065d97 # v9.0.12
444449
with:
445450
cname: ${{ env.DOCUMENTATION_CNAME }}
446451
token: ${{ secrets.GITHUB_TOKEN }}
447452
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
448453
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
449-
450-
doc-index-stable:
451-
name: "Deploy stable docs index"
452-
runs-on: ubuntu-latest
453-
needs: upload-docs-release
454-
steps:
455-
- name: "Install Git and clone project"
456-
uses: actions/checkout@v4
457-
458-
- name: "Install the package requirements"
459-
run: pip install -e .
460-
461-
- name: "Get the version to PyMeilisearch"
462-
run: |
463-
VERSION=$(python -c "from pyedb import __version__; print('.'.join(__version__.split('.')[:2]))")
464-
VERSION_MEILI=$(python -c "from pyedb import __version__; print('-'.join(__version__.split('.')[:2]))")
465-
echo "Calculated VERSION: $VERSION"
466-
echo "Calculated VERSION_MEILI: $VERSION_MEILI"
467-
echo "VERSION=$VERSION" >> $GITHUB_ENV
468-
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV

0 commit comments

Comments
 (0)