Only run publish step once build is done
Signed-off-by: Nic Cope <nicc@rk0n.org>
This commit is contained in:
parent
c1e5e20bef
commit
85783c6fb9
|
@ -86,7 +86,7 @@ jobs:
|
|||
- name: Upload Sdist and Wheel to GitHub
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: module
|
||||
name: dist
|
||||
path: "dist/*"
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
|
@ -95,12 +95,14 @@ jobs:
|
|||
publish:
|
||||
# Don't publish unless we were run with an explicit version.
|
||||
if: ${{ inputs.version != '' }}
|
||||
needs:
|
||||
- build
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Download Sdist and Wheel from GitHub
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: module
|
||||
name: dist
|
||||
path: "dist"
|
||||
|
||||
- name: Publish to PyPI
|
||||
|
|
Loading…
Reference in New Issue