File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -130,19 +130,23 @@ jobs:
130130 - uses : actions/download-artifact@v4
131131 with :
132132 path : dist/
133+ pattern : ' *'
134+ merge-multiple : true
133135 - name : Check artifacts
134136 run : ls -lR
135137 - name : Consolidate and re-check
136138 run : |
139+ set -eo pipefail
137140 mv dist/*/*.{tar.gz,whl} dist
138141 rmdir dist/*/
139- ls -lR
142+ ls -lR dist/
140143 - run : pipx run twine check dist/*
141144
142145 publish :
143146 runs-on : ubuntu-latest
144147 environment : " Package deployment"
145148 needs : [pre-publish]
149+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
146150 steps :
147151 - uses : actions/download-artifact@v4
148152 with :
@@ -159,4 +163,3 @@ jobs:
159163 with :
160164 user : __token__
161165 password : ${{ secrets.PYPI_API_TOKEN }}
162- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
You can’t perform that action at this time.
0 commit comments