Skip to content

Commit

Permalink
CI: [skip-ci] update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mckib2 committed Feb 16, 2024
1 parent 62fd22d commit 4f168ce
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/github-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ jobs:
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
environment: release
permissions:
id-token: write
if: github.event_name == 'workflow_dispatch'
steps:
- uses: actions/download-artifact@v2
Expand All @@ -86,7 +85,3 @@ jobs:
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.pypi_username }}
password: ${{ secrets.pypi_password }}
# To test: repository_url: https://test.pypi.org/legacy/

0 comments on commit 4f168ce

Please sign in to comment.