nixos-config/.github/workflows/iso.yml

32 lines
901 B
YAML
Raw Normal View History

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"
- "aarch64-linux"
2022-02-04 15:59:57 +00:00
runs-on: ubuntu-latest
steps:
2023-04-24 03:32:04 +00:00
- uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: DeterminateSystems/nix-installer-action@v4
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
gh release create latest --prerelease --generate-notes build-iso-result/iso/*.iso