Skip to content

Commit ee5f2d5

Browse files
committed
ci/cd: update workflow
1 parent 6eec000 commit ee5f2d5

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

.github/workflows/build-and-release.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
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 }}

0 commit comments

Comments
 (0)