-
-
Notifications
You must be signed in to change notification settings - Fork 7
73 lines (61 loc) · 2.15 KB
/
iso-build.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Release TCET Linux ISO
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: write
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Set current date as environment variable
run: echo "DATE=`date +'%Y.%m.%d'`" >>$GITHUB_ENV
- name: Synchronise package repositories and install archiso
run: pacman -Syu --noconfirm archiso git archlinux-keyring wget reflector --needed
- name: Running Reflector
run: |
reflector --country "France,Sweden" \
--verbose \
--sort rate \
--protocol https \
--latest 5 \
--save /etc/pacman.d/mirrorlist
pacman -Syu
- name: Setting Up Keyring
run: |
pacman-key --init
pacman-key --keyserver keyserver.ubuntu.com -r 280178FA27665D44
pacman-key --lsign-key 280178FA27665D44
pacman-key --keyserver keyserver.ubuntu.com -r 421FFABA41F36DA5
pacman-key --lsign-key 421FFABA41F36DA5
pacman-key --keyserver keyserver.ubuntu.com -r 02F660CD5FA77EBB
pacman-key --lsign-key 02F660CD5FA77EBB
pacman-key --keyserver keyserver.ubuntu.com -r BF4E1E687DD0A534
pacman-key --lsign-key BF4E1E687DD0A534
- name: Building TCET Linux ISO
run: |
ls -al
pacman -Syu
wget https://raw.githubusercontent.com/tcet-opensource/tcet-linux/main/pacman.conf -O /etc/pacman.conf
mkarchiso -v -w ./work -o ./out ./
echo "ISO Built in ./out folder!"
ls -al
- name: Generating Checksum
run: |
ls -al
cd out/
touch checksum
sha256sum *.iso > checksum
ls -al
- name: Release ISO File
uses: ncipollo/release-action@v1
with:
artifacts: "out/*.iso,out/checksum"
body: "v2.0.0"
generateReleaseNotes: false
name: "TCET-Linux"
tag: ${{ env.DATE }}