Skip to content

Commit

Permalink
Move to trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
pschanely committed Jan 1, 2025
1 parent 6c1430f commit e2ca36c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/buildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ jobs:
path: dist/*.tar.gz

upload_pypi:
# Publish when a GitHub Release is created:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# Publish when a GitHub Release is created:
environment:
name: release
url: https://pypi.org/p/crosshair-tool
permissions:
id-token: write
if: (github.event_name == 'workflow_dispatch') || (github.event_name == 'release' && github.event.action == 'published')
steps:
- uses: actions/download-artifact@v4
Expand All @@ -72,6 +77,3 @@ jobs:
merge-multiple: true

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit e2ca36c

Please sign in to comment.