Skip to content

Commit

Permalink
Merge pull request #44 from NebraLtd/shawaj/build-fix
Browse files Browse the repository at this point in the history
fix: only try to upload if version number changed
  • Loading branch information
shawaj authored Oct 25, 2021
2 parents c86bfd8 + e324173 commit f8b2d8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-to-pypi-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ jobs:
name: wheels
path: ./dist/*

- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]

- name: Publish distribution 📦 to Test PyPI
if: contains(steps.changed-files.outputs.modified_files, 'setup.py')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
Expand Down

0 comments on commit f8b2d8c

Please sign in to comment.