diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee870479..99b60bd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: python-version: "3.13" poetry-install-options: "--no-root" - name: "Build Documentation" - run: "poetry run invoke build-and-check-docs" + run: "poetry run invoke build build-and-check-docs" - name: "Run Poetry Build" run: "poetry build" @@ -58,18 +58,17 @@ jobs: if: "startsWith(github.ref, 'refs/tags/v')" needs: "build" environment: "pypi" - permissions: - # IMPORTANT: this permission is mandatory for Trusted Publishing - id-token: "write" steps: - name: "Retrieve built package from cache" uses: "actions/download-artifact@v4" with: name: "distfiles" path: "dist/" - - - name: "Publish package distributions to PyPI" + - name: "Publish package distribution to PyPI" uses: "pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e" # v1.13.0 + with: + user: "__token__" + password: "${{ secrets.PYPI_API_TOKEN }}" slack-notify: needs: diff --git a/changes/321.housekeeping b/changes/321.housekeeping new file mode 100644 index 00000000..044f8618 --- /dev/null +++ b/changes/321.housekeeping @@ -0,0 +1 @@ +Fixed CI release workflow. diff --git a/changes/323.housekeeping b/changes/323.housekeeping new file mode 100644 index 00000000..6a862e0f --- /dev/null +++ b/changes/323.housekeeping @@ -0,0 +1 @@ +Reverted PyPI publishing method.