nixos-config/.github/workflows/iso.yml
Gabriel Arazas c83ba2c5cd
ci: remove graphical installer for ISO workflow
It's too big for the 2GB limitation for each release. I'll have to
figure out how to trim it down.
2023-07-17 10:47:27 +08:00

27 lines
785 B
YAML

name: "Build personalized bootstrap ISO"
on:
push:
branches:
- master
paths-ignore:
- docs/
jobs:
build-iso:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: DeterminateSystems/nix-installer-action@v4
- name: Build ISO
run: |
nix build .#images.bootstrap --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