forked from StratOS-Linux/StratOS-iso_old
-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 1.28 KB
/
deploy.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
name: Release ISO
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup distrobox
run: |
sudo apt update
sudo apt install -y git podman
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh
git clone --recurse-submodules https://github.com/zstg/StratOS-iso
distrobox create -i archlinux -n isobuilder -Y
- name: Build ISO
id: build_iso
run: |
cd StratOS-iso
export BUILD_DATE=$(distrobox enter -n isobuilder -- date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)
#distrobox enter -n isobuilder -- mount -t proc proc /proc
#distrobox enter -n isobuilder -- mount -t sysfs sys /sys
#distrobox enter -n isobuilder -- mount --rbind /dev /dev
#distrobox enter -n isobuilder -- mount --rbind /run /run
#chmod +x ./build.sh
distrobox exec -n isobuilder -- sudo bash ./build.sh
echo "::set-output name=date::${BUILD_DATE}"
- name: Upload
uses: ncipollo/release-action@v1
with:
artifacts: "output/*.iso"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.build_iso.outputs.date }}