Skip to content

Commit

Permalink
trusted publish (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejnovak authored Mar 8, 2024
1 parent 5945467 commit beabdac
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ jobs:
run: pipx run twine check dist/*


publish:
needs: [dist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/download-artifact@v3
publish:
needs: [dist]
environment: release
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
name: Packages
path: dist

- uses: pypa/[email protected]
with:
password: ${{ secrets.pypi_password }}
print-hash: true
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit beabdac

Please sign in to comment.