File tree Expand file tree Collapse file tree 1 file changed +8
-22
lines changed
Expand file tree Collapse file tree 1 file changed +8
-22
lines changed Original file line number Diff line number Diff line change 88jobs :
99 build-and-release :
1010 runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
1113
1214 steps :
1315 - name : Checkout code
@@ -29,27 +31,11 @@ jobs:
2931 - name : Build the ISO
3032 run : make iso
3133
32- - name : Create Tag
33- run : |
34- git config user.name "github-actions"
35- git config user.email "github-actions@github.com"
36- git tag -a "v0.0.${{ github.run_number }}" -m "Auto tag for run ${{ github.run_number }}"
37- git push origin "v0.0.${{ github.run_number }}"
38-
39- - name : Create GitHub Release
34+ - name : Create Release
4035 id : create_release
41- uses : ncipollo/release- action@v1
36+ uses : softprops/ action-gh-release@v2
4237 with :
43- tag : " v0.0.${{ github.run_number }}"
44- name : Serix Kernel ISO "v0.0.${{ github.run_number }}"
45- body : Automated Serix Kernel ISO release for commit ${{ github.sha }}
46- token : ${{ secrets.PAT }}
47-
48- - name : Upload ISO asset via API
49- run : |
50- curl --fail -X POST \
51- -H "Authorization: Bearer ${{ secrets.PAT }}" \
52- -H "Content-Type: application/octet-stream" \
53- --data-binary @./serix.iso \
54- "${{steps.create_release.outputs.UPLOAD_URL}}?name=serix.iso"
55-
38+ files : |
39+ ./serix.iso
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments