Skip to content

Commit

Permalink
ci: publish releases to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrdz committed Jul 9, 2024
1 parent b670273 commit 5804670
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: pypi-publish

on:
release:
types:
- published

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# This permission is needed for private repositories.
contents: read
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3

- uses: pdm-project/setup-pdm@v3

- name: Publish package distributions to PyPI
run: pdm publish

0 comments on commit 5804670

Please sign in to comment.