File tree Expand file tree Collapse file tree 2 files changed +30
-19
lines changed Expand file tree Collapse file tree 2 files changed +30
-19
lines changed Original file line number Diff line number Diff line change 1+ name : Bump Version
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ # --- Bump version
8+ bump-version :
9+
10+ runs-on : ubuntu-latest
11+ environment : deploy-pypi-test
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+ with :
17+ token : ${{ secrets.MY_TOKEN }}
18+ - name : Bump versions
19+ uses : remorses/bump-version@js
20+ with :
21+ version_file : ./arcade/VERSION
22+ prerelease_tag : rc
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.MY_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,38 +2,25 @@ name: Distribute build to PyPi Production
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : ' Tag to deploy'
8+ required : true
9+ type : string
510
611jobs :
7- # --- Bump version
8- bump-version :
9-
10- runs-on : ubuntu-latest
11- environment : deploy-pypi-test
12-
13- steps :
14- - name : Checkout code
15- uses : actions/checkout@v4
16- with :
17- token : ${{ secrets.MY_TOKEN }}
18- - name : Bump versions
19- uses : remorses/bump-version@js
20- with :
21- version_file : ./arcade/VERSION
22- prerelease_tag : rc
23- env :
24- GITHUB_TOKEN : ${{ secrets.MY_TOKEN }}
2512
2613 # --- Deploy to pypi
2714 deploy-to-pypi-prod :
2815
2916 runs-on : ubuntu-latest
3017 environment : deploy-pypi-prod
31- needs : bump-version
3218 steps :
3319 - name : Checkout
3420 uses : actions/checkout@v4
3521 with :
3622 fetch-tags : ' true'
23+ ref : ${{ github.event.inputs.tag }}
3724 - name : Set up Python
3825 uses : actions/setup-python@v5
3926 with :
You can’t perform that action at this time.
0 commit comments