Skip to content

Commit

Permalink
SYS: Automatically attach binaries on release
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Jun 12, 2024
1 parent 73af0ad commit c3c84a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
environment: pypi
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@master

Expand All @@ -28,6 +29,14 @@ jobs:
run: |
python -m build
- name: Attach binaries
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
dist/*
- name: Upload to PyPi
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c3c84a5

Please sign in to comment.