47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Build NaxOS Bootable ISO
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
channel:
|
|
description: 'Target Release Channel'
|
|
required: true
|
|
default: 'stable'
|
|
|
|
jobs:
|
|
build-iso:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Nix with Flake Support
|
|
uses: cachix/install-nix-action@v27
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-24.11
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- name: Build Bootable NaxOS Installer ISO
|
|
run: |
|
|
nix build .#iso --show-trace
|
|
|
|
- name: Locate ISO Artifact
|
|
id: iso-info
|
|
run: |
|
|
ISO_FILE=$(find result/iso -name "*.iso" | head -n 1)
|
|
echo "Found ISO: $ISO_FILE"
|
|
SHA256=$(sha256sum "$ISO_FILE" | cut -d' ' -f1)
|
|
echo "SHA256: $SHA256"
|
|
echo "iso_file=$ISO_FILE" >> $GITHUB_OUTPUT
|
|
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
|
|
|
|
- name: Upload ISO Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: naxos-installer-iso
|
|
path: result/iso/*.iso
|