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

32 lines
870 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:
2023-04-24 03:32:04 +00:00
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
2022-02-04 15:59:57 +00:00
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build ISO
id: build-iso
# TODO: Use the registry.
run: |
nix build .#nixos-image-install-iso-bootstrap --out-link build-iso-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:
2022-11-25 07:03:04 +00:00
build-iso-result/iso/bootstrap-*.iso
2022-02-04 15:59:57 +00:00