Skip to content

Commit

Permalink
Add release workflow (#1213)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Heumos <[email protected]>
  • Loading branch information
flying-sheep and Zethson authored Oct 31, 2023
1 parent 87f570a commit fe3f261
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Python Package

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write # to authenticate as Trusted Publisher to pypi.org
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: "pip"
- run: pip install build
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit fe3f261

Please sign in to comment.