Skip to content

Commit 9c7a3eb

Browse files
authored
Merge pull request #29 from negz/like-a-version
Only run publish step once build is done
2 parents b143432 + 85783c6 commit 9c7a3eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- name: Upload Sdist and Wheel to GitHub
8787
uses: actions/upload-artifact@v4
8888
with:
89-
name: module
89+
name: dist
9090
path: "dist/*"
9191
if-no-files-found: error
9292
retention-days: 1
@@ -95,12 +95,14 @@ jobs:
9595
publish:
9696
# Don't publish unless we were run with an explicit version.
9797
if: ${{ inputs.version != '' }}
98+
needs:
99+
- build
98100
runs-on: ubuntu-22.04
99101
steps:
100102
- name: Download Sdist and Wheel from GitHub
101103
uses: actions/download-artifact@v4
102104
with:
103-
name: module
105+
name: dist
104106
path: "dist"
105107

106108
- name: Publish to PyPI

0 commit comments

Comments
 (0)