-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (40 loc) · 1.19 KB
/
release.yaml
File metadata and controls
50 lines (40 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: FeOS Release
on:
push:
tags:
- '*'
jobs:
build_release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Protobuf Compiler
run: sudo apt-get update && sudo apt-get install protobuf-compiler -y
- name: Run Tests
run: make test
- name: Build build-container
run: make build-container
- name: Build Kernel
run: make kernel
- name: Build initramfs
run: make initramfs
- name: Build UKI
run: |
mkdir keys
echo "${{ secrets.SECUREBOOT_PRIVATEKEY }}" > keys/secureboot.key
echo "${{ secrets.SECUREBOOT_CERTIFICATE }}" > keys/secureboot.pem
openssl x509 -in keys/secureboot.pem -out keys/feos.crt -outform DER
make uki
mv target/uki.efi target/feos-${{ github.ref_name }}-x86_64.efi
- name: Release
uses: softprops/action-gh-release@v1
id: create_release
with:
name: FeOS ${{ github.ref_name }}
body_path: docs/changelog/FeOS-${{ github.ref_name }}.md
files: |
target/feos-${{ github.ref_name }}-x86_64.efi
keys/FeOS.crt