willow: init package #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- uses: DeterminateSystems/nix-installer-action@v10 | |
- 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 |