Skip to content

Commit

Permalink
Update CI workflow to publish on version tags; remove deprecated pyth…
Browse files Browse the repository at this point in the history
…on-package.yml workflow
  • Loading branch information
nfornadimkhan committed Jan 1, 2025
1 parent 62f50d6 commit c1b86ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
publish:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3
Expand All @@ -64,7 +64,6 @@ jobs:
run: python -m build

- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/python-package.yml

This file was deleted.

1 change: 1 addition & 0 deletions github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit c1b86ad

Please sign in to comment.