File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed
Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release staging
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ gen-binary :
10+ name : Gen Binary - Linux - AMD64
11+ runs-on : ubuntu-latest
12+ timeout-minutes : 30
13+ steps :
14+ - uses : actions/checkout@v5
15+
16+ - run : |
17+ make build
18+
19+ - name : upload artifacts
20+ uses : actions/upload-artifact@v4
21+ with :
22+ name : wheel_dist
23+ path : |
24+ wheel_dist/*
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -eu
4+
5+ # This flag toggles the release destination to testing.pypi.org if set to true
6+ DEPLOY_TESTPYPI=false
7+
8+ # a TWINE_PASSWORD environment varialbe is required for it to work.
9+ function release()
10+ {
11+ wheel_path=" $1 "
12+
13+ if [ " $DEPLOY_TESTPYPI " = true ] ; then
14+ export TWINE_REPOSITORY_URL=" https://test.pypi.org/legacy/"
15+ fi
16+
17+ twine upload $wheel_path /* .whl --verbose
18+ }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -eu
4+
5+ SCRIPT_HOME=" $( dirname " $( readlink -f " ${BASH_SOURCE[0]} " ) " ) "
6+
7+ source " $SCRIPT_HOME /release-common.sh"
8+
9+ wheel_path=" $1 "
10+
11+ release $wheel_path
You can’t perform that action at this time.
0 commit comments