File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - " v*"
7+ branches :
8+ - " feat/pypi-deploy"
79 workflow_dispatch :
810
911jobs :
@@ -205,4 +207,20 @@ jobs:
205207 - name : Publish to PyPI
206208 uses : pypa/gh-action-pypi-publish@release/v1
207209 with :
208- packages-dir : ./dist/
210+ packages-dir : ./dist/
211+
212+ test_deploy :
213+ name : Test Deploy (dry-run)
214+ runs-on : ubuntu-latest
215+ if : github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
216+ steps :
217+ - uses : actions/checkout@v4
218+ - name : Download wheels from latest GitHub Release
219+ run : |
220+ mkdir -p dist
221+ gh release download --pattern '*.whl' --dir dist
222+ echo "Downloaded wheels:"
223+ ls -la dist/
224+ echo "Dry-run: would publish these to PyPI"
225+ env :
226+ GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments