mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
ci: improve build ISO workflow
This commit is contained in:
parent
e170745357
commit
7c6c5d6cf2
20
.github/workflows/iso.yml
vendored
20
.github/workflows/iso.yml
vendored
@ -4,6 +4,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
paths-ignore:
|
||||||
|
- docs/
|
||||||
jobs:
|
jobs:
|
||||||
build-iso:
|
build-iso:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -12,19 +14,11 @@ jobs:
|
|||||||
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
- uses: DeterminateSystems/nix-installer-action@v4
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
id: build-iso
|
|
||||||
# TODO: Use the registry.
|
|
||||||
run: |
|
run: |
|
||||||
nix build .#nixos-image-install-iso-bootstrap --out-link build-iso-result
|
nix build .#images.bootstrap --out-link build-iso-result
|
||||||
- name: Create release
|
- name: Create release
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
id: create-release
|
env:
|
||||||
uses: marvinpinto/action-automatic-releases@v1.2.1
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
gh release create "${{ github.ref }}" --generate-notes build-iso-result/iso/*.iso
|
||||||
automatic_release_tag: latest
|
|
||||||
prerelease: true
|
|
||||||
title: Latest release
|
|
||||||
files:
|
|
||||||
build-iso-result/iso/bootstrap-*.iso
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user