Skip to content

build and release

build and release #50

Workflow file for this run

name: build and release
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-iso
cancel-in-progress: true
jobs:
build-iso:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: build ISO
run: |
nix build .#iso --accept-flake-config
mkdir iso || true
ISO=$(head -n1 result/nix-support/hydra-build-products | cut -d'/' -f6)
sudo ln "result/iso/${ISO}" iso/nyx.iso
sha256sum "iso/nyx.iso" > "iso/nyx.iso.sha256"
sed -i -r "s/ .*\/(.+)/ \1/g" "iso/nyx.iso.sha256"
ls -la iso
- name: Upload ISO as artifact
id: upload
uses: actions/upload-artifact@v4
with:
name: ISO
path: |
./result/iso/*.iso
if-no-files-found: error
retention-days: 0
compression-level: 0