File tree 1 file changed +35
-1
lines changed
1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change 18
18
run : |
19
19
set -x
20
20
VERSION=v$(cat package/version)
21
- gh release create ${VERSION} --target ${{ github.sha }}
21
+ gh release create ${VERSION} \
22
+ --draft \
23
+ --title ${VERSION} \
24
+ --target ${{ github.sha }}
25
+
26
+ attach-artifact :
27
+ name : ' Jammy Package'
28
+ runs-on : ubuntu-latest
29
+ needs : draft-release
30
+ steps :
31
+ - name : ' Check out code'
32
+ uses : actions/checkout@v4
33
+ - name : ' Make artifact'
34
+ env :
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
+ run : |
37
+ set -x
38
+ VERSION=v$(cat package/version)
39
+ echo 'hi there!' > k-llvm-backend.deb
40
+ gh release upload ${VERSION} k-llvm-backend.deb
41
+
42
+ finish-release :
43
+ name : ' Finalise release'
44
+ runs-on : ubuntu-latest
45
+ needs : attach-artifact
46
+ steps :
47
+ - name : ' Check out code'
48
+ uses : actions/checkout@v4
49
+ - name : ' Make artifact'
50
+ env :
51
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
+ run : |
53
+ set -x
54
+ VERSION=v$(cat package/version)
55
+ gh release edit ${VERSION} --draft=false
22
56
23
57
# release:
24
58
# name: 'Publish Release'
You can’t perform that action at this time.
0 commit comments