Installer workflow: Create ISO instead of build artifact
Some checks reported warnings
CI / Check, build and cache Nix flake (push) Has been cancelled
Installer ISO / Build installer ISO (push) Successful in 3m1s

This commit is contained in:
Jack O'Sullivan 2023-12-05 14:49:54 +00:00
parent 3d7a1b8e6c
commit ebb613cbfd

View File

@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GH_PULL_TOKEN }}
@ -25,10 +29,15 @@ jobs:
login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}"
- name: Build installer ISO
id: build
run: |
nix build .#nixosConfigurations.installer.config.my.buildAs.iso
- name: Upload ISO
uses: actions/upload-artifact@v3
short_rev="$(git rev-parse --short HEAD)"
ln -s result/iso/nixos-installer-devplayer0.iso nixos-installer-devplayer0-$short_rev.iso
echo "short_rev=$short_rev" >> "$GITHUB_OUTPUT"
- name: Create release for ISO
uses: https://gitea.com/actions/release-action@main
with:
name: installer-iso
path: result/iso/nixos-installer-devplayer0.iso
title: Installer @ `${{ steps.build.outputs.short_rev }}`
files: |
nixos-install-devplayer0-${{ steps.build.outputs.short_rev }}.iso