Skip to content

Commit

Permalink
ci: add ferrucyon build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Apr 19, 2023
1 parent 5c412d7 commit dd179aa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/ferrucyon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "ferrucyon iso"
on:
push:
tags:
- '*'

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: nixbuild/nix-quick-install-action@v22
with:
nix_conf: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Build ferrucyon iso
run: |
nix build .#ferrucyon
cp result/iso/nixos.iso ferrucyon.iso
- name: Publish and release
uses: softprops/action-gh-release@v1
with:
files: ferrucyon.iso
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion iso/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
, ...
}: {
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-base.nix")
(modulesPath + "/installer/cd-dvd/iso-image.nix")
(modulesPath + "/profiles/all-hardware.nix")
];

nix = {
Expand Down

0 comments on commit dd179aa

Please sign in to comment.