Skip to content

Commit

Permalink
Start using PyPi trusted publishing (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas authored May 21, 2023
1 parent d7c34ab commit 4c1dc5c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
release:
name: Releasing to PyPi
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v3.5.2
Expand All @@ -41,11 +44,7 @@ jobs:
- name: 🏗 Build package
run: poetry build --no-interaction
- name: 🚀 Publish package to PyPi
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi "${PYPI_TOKEN}"
poetry publish --no-interaction
uses: pypa/gh-action-pypi-publish@release/v1

tweet:
name: 🐦 Tweet the release
Expand Down

0 comments on commit 4c1dc5c

Please sign in to comment.