-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 977 Bytes
/
Copy pathbuild-iso.yml
File metadata and controls
43 lines (35 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build NixOS ISO
on:
push:
branches: [master]
tags: ["v*"]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Inject SSH public key
if: env.SSH_PUBLIC_KEY != ''
run: echo "$SSH_PUBLIC_KEY" > authorized-keys
env:
SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }}
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-24.11
- name: Flake check
run: nix flake check
- name: Build ISO
run: nix build .#iso
- name: Upload ISO artifact
uses: actions/upload-artifact@v4
with:
name: nixos-hetzner-iso
path: result/iso/*.iso
- name: Create GitHub release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: result/iso/*.iso