-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.28 KB
/
build-iso.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
name: Build ISO
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Increase Disk Space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo rm -rf /home/linuxbrew
sudo apt-get remove -y --purge fonts-noto-color-emoji subversion \
sshpass g++ gcc gnupg2 imagemagick jq libmagic-dev \
libmagickcore-dev libmagickwand-dev libssl-dev \
mercurial openssh-client p7zip-full ftp bison
sudo apt-get autoremove -y
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build ISO
run: |
docker run \
--privileged \
-v "$PWD":/repo \
ghcr.io/t2linux/fedora-dev:40 \
/repo/build.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: fedora-iso
path: builddir/iso/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
builddir/iso/*