41ada3fa60
`release-action` is archived; its repository points at `gitea-release-action` as the replacement. The inputs were renamed (`api_key` -> `token`, `title` -> `name`). The new action is a Node one rather than Go, so the Go setup step kept in the previous commit is no longer needed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
52 lines
1.8 KiB
YAML
52 lines
1.8 KiB
YAML
name: Installer
|
|
|
|
on:
|
|
push:
|
|
tags: [installer]
|
|
|
|
jobs:
|
|
installer:
|
|
name: Build installer
|
|
runs-on: ubuntu-26.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: DeterminateSystems/determinate-nix-action@v3
|
|
with:
|
|
# Gitea will supply a token in GITHUB_TOKEN, which this action passes to
|
|
# Nix (as access-tokens) when downloading from GitHub
|
|
github-token: ${{ secrets.GH_PULL_TOKEN }}
|
|
extra-conf: |
|
|
# Make sure we're using sandbox
|
|
sandbox-fallback = false
|
|
|
|
# Determinate performance features
|
|
lazy-trees = true
|
|
eval-cores = 0
|
|
|
|
extra-substituters = https://nix-cache.nul.ie
|
|
extra-trusted-public-keys = nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4=
|
|
|
|
- name: Set up vars
|
|
id: setup
|
|
run: |
|
|
echo "short_rev=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
|
|
- name: Build installer ISO
|
|
run: |
|
|
nix build .#nixfiles.config.nixos.systems.installer.configuration.config.my.buildAs.iso
|
|
ln -s "$(readlink result)"/iso/jackos-installer.iso \
|
|
jackos-installer-${{ steps.setup.outputs.short_rev }}.iso
|
|
- name: Build installer netboot archive
|
|
run: |
|
|
nix build .#nixfiles.config.nixos.systems.installer.configuration.config.my.buildAs.netbootArchive
|
|
ln -s "$(readlink result)" \
|
|
jackos-installer-netboot-${{ steps.setup.outputs.short_rev }}.tar.zst
|
|
|
|
- name: Create release
|
|
uses: https://gitea.com/actions/gitea-release-action@main
|
|
with:
|
|
name: Latest installer
|
|
token: '${{ secrets.RELEASE_TOKEN }}'
|
|
files: |
|
|
jackos-installer-${{ steps.setup.outputs.short_rev }}.iso
|
|
jackos-installer-netboot-${{ steps.setup.outputs.short_rev }}.tar.zst
|