From deed0af3ccd935ba116cefe4cd0829a627655799 Mon Sep 17 00:00:00 2001 From: Doug Addy Date: Mon, 14 Apr 2025 11:05:01 +0100 Subject: [PATCH 1/2] Update ci_cd.yml --- .github/workflows/ci_cd.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 237f7fef..a662799e 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -152,6 +152,7 @@ jobs: token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} + release: name: "Release" if: github.event_name == 'push' && contains(github.ref, 'refs/tags') @@ -162,17 +163,25 @@ jobs: id-token: write contents: write steps: - - uses: ansys/actions/release-pypi-public@v9 - name: "Release to public PyPI" - with: - library-name: ${{ env.LIBRARY_NAME }} - use-trusted-publisher: true + - name: "Download the library artifacts from build-library step" + uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1 + with: + name: ${{ env.PACKAGE_NAME }}-artifacts + path: ${{ env.PACKAGE_NAME }}-artifacts - - uses: ansys/actions/release-github@v9 - name: "Release to GitHub" - with: - library-name: ${{ env.LIBRARY_NAME }} - token: ${{ secrets.GITHUB_TOKEN }} + - name: "Upload artifacts to PyPI using trusted publisher" + uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 + with: + repository-url: "https://upload.pypi.org/legacy/" + print-hash: true + packages-dir: ${{ env.PACKAGE_NAME }}-artifacts + skip-existing: false + + - uses: ansys/actions/release-github@v9 + name: "Release to GitHub" + with: + library-name: ${{ env.LIBRARY_NAME }} + token: ${{ secrets.GITHUB_TOKEN }} doc-deploy-stable: name: "Deploy stable documentation" From 26f5c69c47a4ecb8f24c385c3be9b4ce55fe4034 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 14 Apr 2025 10:06:34 +0000 Subject: [PATCH 2/2] chore: adding changelog file 777.maintenance.md [dependabot-skip] --- doc/changelog.d/777.maintenance.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/777.maintenance.md diff --git a/doc/changelog.d/777.maintenance.md b/doc/changelog.d/777.maintenance.md new file mode 100644 index 00000000..664fe5a3 --- /dev/null +++ b/doc/changelog.d/777.maintenance.md @@ -0,0 +1 @@ +Revert to pypa/gh-action-pypi-publish for publishing \ No newline at end of file