Skip to content

Commit 2cbe396

Browse files
committed
[UPDATED] iso-build.yml
1 parent 29a4331 commit 2cbe396

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

.github/workflows/iso-build.yml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Build TCET Linux ISO
1+
name: Release TCET Linux ISO
22

33
on:
44
workflow_dispatch:
55

66
jobs:
7-
build:
7+
release:
88
runs-on: ubuntu-latest
99
timeout-minutes: 60
1010

@@ -17,30 +17,36 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
20+
2121
- name: Set current date as environment variable
2222
run: echo "DATE=`date +'%Y.%m.%d'`" >>$GITHUB_ENV
23-
23+
2424
- name: Synchronise package repositories and install archiso
25-
run: pacman -Syu --noconfirm archiso mkinitcpio-archiso git squashfs-tools
26-
27-
- name: Build TCET Linux ISO
25+
run: pacman -Syu --noconfirm archiso git archlinux-keyring reflector wget
26+
27+
- name: Running Reflector
2828
run: |
29-
pacman -S --noconfirm --needed archlinux-keyring wget
30-
wget https://raw.githubusercontent.com/tcet-opensource/tcet-linux/main/pacman.conf -O /etc/pacman.conf
31-
#echo "Fetching chaotic keys"
32-
#pacman-key --init && pacman-key --recv-key 0706B90D37D9B881 FBA220DFC880C036 --keyserver keyserver.ubuntu.com && pacman-key --lsign-key 0706B90D37D9B881 FBA220DFC880C036 && pacman --noconfirm -U 'https://geo-mirror.chaotic.cx/chaotic-aur/chaotic-'{keyring,mirrorlist}'.pkg.tar.zst' && echo "[chaotic-aur]" >> /etc/pacman.conf && echo "Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf
33-
#pacman-key --populate archlinux chaotic
34-
mkarchiso -v -w ./work -o ./out ./
35-
echo "ISO Built in ./out folder!"
29+
reflector --country "France,Sweden" \
30+
--verbose \
31+
--sort rate \
32+
--protocol https \
33+
--latest 5 \
34+
--save /etc/pacman.d/mirrorlist
35+
pacman -Syu
3636
37+
- name: Building TCET Linux ISO
38+
run: |
39+
pacman -Syu
40+
wget https://raw.githubusercontent.com/tcet-opensource/tcet-linux/main/pacman.conf -O /etc/pacman.conf
41+
mkarchiso -v -w ./work -o ./out ./
42+
echo "ISO Built in ./out folder!"
43+
3744
- name: Release ISO File
38-
uses: "marvinpinto/action-automatic-releases@latest"
45+
uses: ncipollo/release-action@v1
3946
with:
40-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
41-
automatic_release_tag: ${{ env.DATE }}
42-
prerelease: false
43-
title: "tcet-linux"
44-
files: |
45-
out/*
47+
artifacts: "out/*.iso"
48+
body: "v2.0.0"
49+
generateReleaseNotes: false
50+
name: "TCET-Linux"
51+
tag: ${{ env.DATE }}
4652

0 commit comments

Comments
 (0)