2022-02-04 15:59:57 +00:00
|
|
|
name: "Build personalized bootstrap ISO"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-07-14 11:28:49 +00:00
|
|
|
paths-ignore:
|
|
|
|
- docs/
|
2022-02-04 15:59:57 +00:00
|
|
|
jobs:
|
|
|
|
build-iso:
|
2023-08-02 02:11:13 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
- "x86_64-linux"
|
2022-02-04 15:59:57 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-14 10:34:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-14 11:10:35 +00:00
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
2023-12-13 12:59:32 +00:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@v9
|
2022-02-04 15:59:57 +00:00
|
|
|
- name: Build ISO
|
|
|
|
run: |
|
2023-08-02 02:11:13 +00:00
|
|
|
nix build .#images.${{ matrix.arch }}.bootstrap --impure --out-link build-iso-result
|
2023-07-16 11:30:13 +00:00
|
|
|
env:
|
|
|
|
NIXPKGS_ALLOW_BROKEN: "1"
|
|
|
|
NIXPKGS_ALLOW_UNFREE: "1"
|
2022-02-04 15:59:57 +00:00
|
|
|
- name: Create release
|
2023-07-14 11:28:49 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
2023-07-15 14:33:07 +00:00
|
|
|
gh release delete latest --cleanup-tag --yes || true
|
2023-07-17 02:47:27 +00:00
|
|
|
gh release create latest --prerelease --generate-notes build-iso-result/iso/*.iso
|