diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 6bc97c9e..963348d4 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -30,7 +30,7 @@ jobs: contents: write pull-requests: write steps: - - uses: ansys/actions/doc-deploy-changelog@v8 + - uses: ansys/actions/doc-deploy-changelog@v9 with: token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} @@ -42,7 +42,7 @@ jobs: steps: - name: PyAnsys Vulnerability check (on main) if: github.ref == 'refs/heads/main' - uses: ansys/actions/check-vulnerabilities@v8 + uses: ansys/actions/check-vulnerabilities@v9 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} python-package-name: ${{ env.PACKAGE_NAME }} @@ -50,7 +50,7 @@ jobs: - name: PyAnsys Vulnerability check (on dev mode) if: github.ref != 'refs/heads/main' - uses: ansys/actions/check-vulnerabilities@v8 + uses: ansys/actions/check-vulnerabilities@v9 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} python-package-name: ${{ env.PACKAGE_NAME }} @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest steps: - name: PyAnsys documentation style checks - uses: ansys/actions/doc-style@v8 + uses: ansys/actions/doc-style@v9 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -75,7 +75,7 @@ jobs: uses: pyvista/setup-headless-display-action@v3 - name: "Run Ansys documentation building action" - uses: ansys/actions/doc-build@v8 + uses: ansys/actions/doc-build@v9 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} add-pdf-html-docs-as-assets: true @@ -95,7 +95,7 @@ jobs: os: macos-latest steps: - name: Build wheelhouse and perform smoke test - uses: ansys/actions/build-wheelhouse@v8 + uses: ansys/actions/build-wheelhouse@v9 with: library-name: ${{ env.PACKAGE_NAME }} operating-system: ${{ matrix.os }} @@ -115,7 +115,7 @@ jobs: restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }} - name: "Run pytest" - uses: ansys/actions/tests-pytest@v8 + uses: ansys/actions/tests-pytest@v9 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} requires-xvfb: true @@ -139,7 +139,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Build library source and wheel artifacts - uses: ansys/actions/build-library@v8 + uses: ansys/actions/build-library@v9 with: library-name: ${{ env.PACKAGE_NAME }} python-version: ${{ env.MAIN_PYTHON_VERSION }} @@ -151,7 +151,7 @@ jobs: needs: [package] steps: - name: Deploy the latest documentation - uses: ansys/actions/doc-deploy-dev@v8 + uses: ansys/actions/doc-deploy-dev@v9 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} @@ -160,7 +160,7 @@ jobs: release: name: Release project - if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} needs: [package] runs-on: ubuntu-latest environment: release @@ -168,14 +168,22 @@ jobs: id-token: write contents: write steps: - - name: Release to the public PyPI repository - uses: ansys/actions/release-pypi-public@v8 + - name: "Download the library artifacts from build-library step" + uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9 + with: + name: ${{ env.PACKAGE_NAME }}-artifacts + path: ${{ env.PACKAGE_NAME }}-artifacts + + - name: "Upload artifacts to PyPI using trusted publisher" + uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 with: - use-trusted-publisher: true - library-name: ${{ env.PACKAGE_NAME }} + repository-url: "https://upload.pypi.org/legacy/" + print-hash: true + packages-dir: ${{ env.PACKAGE_NAME }}-artifacts + skip-existing: false - name: Release to GitHub - uses: ansys/actions/release-github@v8 + uses: ansys/actions/release-github@v9 with: library-name: ${{ env.PACKAGE_NAME }} @@ -186,7 +194,7 @@ jobs: needs: [release] steps: - name: Deploy the stable documentation - uses: ansys/actions/doc-deploy-stable@v8 + uses: ansys/actions/doc-deploy-stable@v9 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index e4fc221e..90124caf 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -92,7 +92,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: ansys/actions/doc-changelog@v8 + - uses: ansys/actions/doc-changelog@v9 with: token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} diff --git a/doc/changelog.d/273.dependencies.md b/doc/changelog.d/273.dependencies.md new file mode 100644 index 00000000..420b9632 --- /dev/null +++ b/doc/changelog.d/273.dependencies.md @@ -0,0 +1 @@ +build(deps): bump ansys/actions from 8 to 9 \ No newline at end of file