-
-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (39 loc) · 1.62 KB
/
build-isos.yml
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
44
45
46
name: Build and Release ISO Images
on:
workflow_dispatch:
schedule:
- cron: "0 3 1,15 * *" # Run on the 1st and 15th of every month at 3:00 AM
jobs:
build-isos:
runs-on: ubuntu-latest
steps:
- name: Maximize Space
uses: easimon/maximize-build-space@v10
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-codeql: true
remove-haskell: true
remove-docker-images: true
- name: Checkout
uses: actions/checkout@v4
- name: Install Lix
uses: DeterminateSystems/nix-installer-action@main
with:
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
logger: pretty
diagnostic-endpoint: ""
extra-conf: |
substituters = https://nix-community.cachix.org https://isabelroses.cachix.org https://catppuccin.cachix.org https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= isabelroses.cachix.org-1:mXdV/CMcPDaiTmkQ7/4+MzChpOe6Cb97njKmBQQmLPM= catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU=
- name: Build Lilith Iso
continue-on-error: false
run: nix build -L .#nixosConfigurations.lilith.config.system.build.isoImage
- name: Upload Release Artifacts
run: |
release=$(date +"%Y-%m-%d")
gh release create "$release"
gh release upload "$release" ./result/iso/*.iso
env:
GH_TOKEN: ${{ github.token }}