We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a964f0e commit 315b9ffCopy full SHA for 315b9ff
.github/workflows/publish.yml
@@ -59,9 +59,28 @@ jobs:
59
name: dist-packages
60
path: dist/
61
62
+ publish-test:
63
+ needs: build
64
+ runs-on: ubuntu-latest
65
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
66
+
67
+ steps:
68
+ - name: Download build artifacts
69
+ uses: actions/download-artifact@v4
70
+ with:
71
+ name: dist-packages
72
+ path: dist/
73
74
+ - name: Publish to Test PyPI
75
+ env:
76
+ TWINE_USERNAME: __token__
77
+ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
78
+ run: |
79
+ pip install twine
80
+ twine upload --repository testpypi dist/*
81
82
publish-prod:
- needs: build
83
+ needs: [build, publish-test]
84
runs-on: ubuntu-latest
85
if: github.event_name == 'release' && github.event.action == 'published'
86
0 commit comments