-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (30 loc) · 885 Bytes
/
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
name: "Build personalized bootstrap ISO"
on:
push:
branches:
- master
paths-ignore:
- docs/
jobs:
build-iso:
strategy:
matrix:
arch:
- "x86_64-linux"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/magic-nix-cache-action@v3
- uses: DeterminateSystems/nix-installer-action@v9
- name: Build ISO
run: |
nix build .#images.${{ matrix.arch }}.bootstrap-install-iso --impure --out-link build-iso-result
env:
NIXPKGS_ALLOW_BROKEN: "1"
NIXPKGS_ALLOW_UNFREE: "1"
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release delete latest --cleanup-tag --yes || true
gh release create latest --prerelease --generate-notes build-iso-result/iso/*.iso