File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed
Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 22#
33# - Get new tag.
44# - If release condidate tag:
5- # - Build the pre-release.
65# - Cut GitHub pre-release.
7- # - Upload wheel to pre-release.
86name : Prerelease Tag Workflow
97
108on :
1412
1513jobs :
1614 cut_prerelease :
15+ permissions :
16+ contents : write
17+ pull-requests : write
1718 name : Cut Pre-Release
1819 runs-on : ubuntu-latest
1920 steps :
@@ -30,17 +31,10 @@ jobs:
3031 if [[ $tag == *"-rc"* ]]; then
3132 echo "do_prerelease=1" >> $GITHUB_ENV
3233 fi
33- echo "tag=$(echo $tag)" >> $GITHUB_OUTPUT
34+ echo "tag=$(echo $tag)" >> $GITHUB_ENV
3435 echo "New tag is: $tag"
3536 echo "GitHub ref: ${{ github.ref }}"
3637
37- - name : Build pre-release
38- id : build
39- if : ${{ env.do_prerelease == 1 }}
40- run : |
41- pip install -U pip poetry twine
42- poetry build && twine check dist/* && echo "build_ok=1" >> $GITHUB_ENV
43-
4438 - name : Cut pre-release
4539 id : cutprerelease
4640 if : ${{ env.build_ok == 1 }}
5347 publish : true
5448 env :
5549 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56-
57- - name : Upload wheel to GitHub pre-release
58- id : upload-wheel
59- if : ${{ env.build_ok == 1 }}
60- uses : shogo82148/actions-upload-release-asset@v1
61- with :
62- upload_url : ${{ steps.cutprerelease.outputs.upload_url }}
63- asset_path : ./dist/*.whl
You can’t perform that action at this time.
0 commit comments