Skip to content

Commit

Permalink
Try to make the upload tag conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
riedgar-ms committed May 10, 2024
1 parent d1262c4 commit ab6468b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ jobs:
name: Publish wheels on pypi
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -130,16 +129,14 @@ jobs:
name: sdist_files
path: dist

- run: ls -R
name: View downloaded artifacts

- uses: actions/upload-artifact@v4
with:
path: ./dist/*
name: collected_dist_files

#- name: Publish package to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ab6468b

Please sign in to comment.