Installer workflow: Create ISO instead of build artifact
This commit is contained in:
parent
3d7a1b8e6c
commit
da6e7a6325
@ -10,6 +10,10 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- uses: cachix/install-nix-action@v23
|
||||||
with:
|
with:
|
||||||
github_access_token: ${{ secrets.GH_PULL_TOKEN }}
|
github_access_token: ${{ secrets.GH_PULL_TOKEN }}
|
||||||
@ -25,10 +29,13 @@ jobs:
|
|||||||
login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}"
|
login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}"
|
||||||
|
|
||||||
- name: Build installer ISO
|
- name: Build installer ISO
|
||||||
|
id: build
|
||||||
run: |
|
run: |
|
||||||
nix build .#nixosConfigurations.installer.config.my.buildAs.iso
|
nix build .#nixosConfigurations.installer.config.my.buildAs.iso
|
||||||
- name: Upload ISO
|
echo "short_rev=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
|
||||||
uses: actions/upload-artifact@v3
|
- name: Create release for ISO
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
name: installer-iso
|
title: Installer @ `${{ steps.build.outputs.short_rev }}`
|
||||||
path: result/iso/nixos-installer-devplayer0.iso
|
files: |
|
||||||
|
result/iso/nixos-installer-devplayer0.iso
|
||||||
|
Loading…
Reference in New Issue
Block a user