Skip to content

Add github workflow

Add github workflow #1

Workflow file for this run

name: Build Nix Project
# Trigger the workflow only when a tag is pushed
on:
push:
tags:
- 'v*'
permissions:
contents: read
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v16
- name: Setup Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix build .
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: result/ironOS.iso