Skip to content

Commit 9fea4ed

Browse files
committed
draft
1 parent 62d8963 commit 9fea4ed

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,41 @@ jobs:
1818
run: |
1919
set -x
2020
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
2256
2357
# release:
2458
# name: 'Publish Release'

0 commit comments

Comments
 (0)