-
Notifications
You must be signed in to change notification settings - Fork 80
42 lines (37 loc) · 988 Bytes
/
build.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
name: "build"
on:
push:
branches:
- master
- feature/*
- hotfix/*
tags:
- nixos-wsl-starter-*
pull_request: {}
workflow_call: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011
with:
extra_nix_config: "access-tokens = github.com=${{ github.token }}"
- name: Build tarball
run: |
nix_bin=$(which nix)
sudo $nix_bin run .#nixosConfigurations.nixos.config.system.build.tarballBuilder
- name: Upload tarball
uses: actions/upload-artifact@v3
with:
name: nixos-wsl.tar.gz
path: nixos-wsl.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: nixos-wsl.tar.gz