-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 982 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
name: build
on:
push:
branches:
- master
schedule:
- cron: '0 16 * * *'
jobs:
tests:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- run: |
curl ${{secrets.VPN_URL}} > iso/config.yaml
git add .
nix flake update
nix build .#iso-image
- name: Upload images artifact
uses: actions/upload-artifact@v4
with:
name: Boot.iso
path: result/iso/*
- run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"
rm -rf iso/config.yaml
git add .
git commit -m "Update flakes" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}