Skip to content

Commit 4ee4f28

Browse files
committed
ci/cd: redo workflow
1 parent 3ebcaf7 commit 4ee4f28

File tree

2 files changed

+39
-48
lines changed

2 files changed

+39
-48
lines changed

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

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Release ISO on Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Rust nightly toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: nightly
23+
override: true
24+
25+
- name: Install build dependencies
26+
run: sudo apt update && sudo apt install -y build-essential xorriso
27+
28+
- name: Add Rust kernel target
29+
run: rustup target add x86_64-unknown-none
30+
31+
- name: Build ISO image
32+
run: make iso
33+
34+
- name: Create GitHub Release and upload ISO
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
files: serix.iso
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)