Skip to content

Commit

Permalink
Add publishing action
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoghlan committed Oct 21, 2024
1 parent 5807a94 commit 2b803c3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish release

on:
release:
types: [published]


jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
permissions:
contents: read
# Allow use of GitHub OIDC for PyPI authentication
id-token: write
steps:
- uses: actions/checkout@v4

- uses: pdm-project/setup-pdm@v4
with:
python-version: 3.12
cache: true

- name: Publish distribution package to PyPI
run: pdm publish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ __pycache__
.mypy*
*.egg-info
*.dist-info
/dist/

0 comments on commit 2b803c3

Please sign in to comment.