Skip to content

Commit

Permalink
Automatically publish to PYPI on release
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Jul 25, 2024
1 parent e87b21a commit b89e97c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Publish to PyPI

on:
workflow_call:
workflow_dispatch:
release:
types:
- released

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
environment: pypi
permissions:
id-token: write
steps:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,3 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "v$version" --title "$version" --notes-from-tag --verify-tag
# - name: Publish to PyPI
# uses: ./.github/publish.yml

0 comments on commit b89e97c

Please sign in to comment.