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 2
2
#
3
3
# - Get new tag.
4
4
# - If release condidate tag:
5
- # - Build the pre-release.
6
5
# - Cut GitHub pre-release.
7
- # - Upload wheel to pre-release.
8
6
name : Prerelease Tag Workflow
9
7
10
8
on :
14
12
15
13
jobs :
16
14
cut_prerelease :
15
+ permissions :
16
+ contents : write
17
+ pull-requests : write
17
18
name : Cut Pre-Release
18
19
runs-on : ubuntu-latest
19
20
steps :
@@ -30,17 +31,10 @@ jobs:
30
31
if [[ $tag == *"-rc"* ]]; then
31
32
echo "do_prerelease=1" >> $GITHUB_ENV
32
33
fi
33
- echo "tag=$(echo $tag)" >> $GITHUB_OUTPUT
34
+ echo "tag=$(echo $tag)" >> $GITHUB_ENV
34
35
echo "New tag is: $tag"
35
36
echo "GitHub ref: ${{ github.ref }}"
36
37
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
-
44
38
- name : Cut pre-release
45
39
id : cutprerelease
46
40
if : ${{ env.build_ok == 1 }}
53
47
publish : true
54
48
env :
55
49
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