-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.05 KB
/
update.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
name: Update
on:
schedule:
- cron: '42 * * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v15
with:
github_access_token: '${{ secrets.GITHUB_TOKEN }}'
- name: Cachix
uses: cachix/cachix-action@v10
with:
name: accentor
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: true
- run: nix flake update
- run: nix build -L --no-link .#accentor-web
- run: nix build -L --no-link .#accentor-api
- run: nix build -L --no-link .#accentor-api.env
- run: nix eval --json ".#accentor-web.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor
- run: nix eval --json ".#accentor-api.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor
- run: nix eval --json ".#accentor-api.env.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor
- uses: stefanzweifel/[email protected]
with:
commit_message: "Update nixpkgs"