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

32 lines
881 B
YAML
Raw Normal View History

2022-02-04 15:59:57 +00:00
name: "Build personalized bootstrap ISO"
on:
push:
branches:
- master
- develop
jobs:
build-iso:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build ISO
id: build-iso
# TODO: Use the registry.
run: |
nix run nixos-generators --inputs-from . -- --flake .#bootstrap --format iso --out-link result
2022-02-04 15:59:57 +00:00
- name: Create release
2022-06-17 04:00:47 +00:00
if: github.ref == 'refs/heads/master'
2022-02-04 15:59:57 +00:00
id: create-release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: latest
prerelease: true
2022-02-11 04:31:44 +00:00
title: Latest release
2022-02-04 15:59:57 +00:00
files:
result/iso/bootstrap-*.iso