File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed
Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 5656 - name : Download build artifacts
5757 uses : actions/download-artifact@v5
5858 - run : |
59+ sudo pip install twine
5960 ./scripts/releasing/release.sh wheel_dist
6061 env:
61- TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
62+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
63+ TWINE_NON_INTERACTIVE: 1
64+ TWINE_USERNAME: __token__
Original file line number Diff line number Diff line change 4646 name : wheel_dist
4747 path : |
4848 wheel_dist/*
49+ release :
50+ name : Release
51+ runs-on : ubuntu-latest
52+ needs : gen-binary
53+ steps :
54+ - uses : actions/checkout@v5
55+ - name : Download build artifacts
56+ uses : actions/download-artifact@v5
57+ - run : |
58+ sudo pip install twine
59+ ./scripts/releasing/release.sh wheel_dist
60+ env:
61+ TWINE_PASSWORD: ${{ secrets.PYPI_TEST_TOKEN }}
62+ TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
63+ TWINE_NON_INTERACTIVE: 1
64+ TWINE_USERNAME: __token__
Original file line number Diff line number Diff line change 22
33set -eu
44
5- # This flag toggles the release destination to testing.pypi.org if set to true
6- DEPLOY_TESTPYPI=false
7-
85# a TWINE_PASSWORD environment varialbe is required for it to work.
96function release()
107{
118 wheel_path=" $1 "
129
13- if [ " $DEPLOY_TESTPYPI " = true ] ; then
14- export TWINE_REPOSITORY_URL=" https://test.pypi.org/legacy/"
15- fi
16-
1710 twine upload $wheel_path /* .whl --verbose
1811}
You can’t perform that action at this time.
0 commit comments