Merge pull request #29 from negz/like-a-version

Only run publish step once build is done
This commit is contained in:
Nic Cope 2024-01-03 18:51:59 -08:00 committed by GitHub
commit 9c7a3eba5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -86,7 +86,7 @@ jobs:
- name: Upload Sdist and Wheel to GitHub - name: Upload Sdist and Wheel to GitHub
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: module name: dist
path: "dist/*" path: "dist/*"
if-no-files-found: error if-no-files-found: error
retention-days: 1 retention-days: 1
@ -95,12 +95,14 @@ jobs:
publish: publish:
# Don't publish unless we were run with an explicit version. # Don't publish unless we were run with an explicit version.
if: ${{ inputs.version != '' }} if: ${{ inputs.version != '' }}
needs:
- build
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Download Sdist and Wheel from GitHub - name: Download Sdist and Wheel from GitHub
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: module name: dist
path: "dist" path: "dist"
- name: Publish to PyPI - name: Publish to PyPI