-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (64 loc) · 2.17 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Update
on:
schedule:
- cron: '30 */2 * * *'
workflow_dispatch:
jobs:
packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cachix
uses: cachix/cachix-action@v15
with:
name: accentor
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: true
- run: nix flake update
- run: nix build -L --no-link .#accentor-web
- run: nix eval --json ".#accentor-web.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor
shell:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cachix
uses: cachix/cachix-action@v15
with:
name: accentor
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: true
- run: nix flake update
- run: nix build -L --no-link .#devShells.$(nix eval --impure --expr "builtins.currentSystem").accentor-web
- run: nix eval --json ".#devShells.$(nix eval --impure --expr 'builtins.currentSystem').accentor-web.outPath" | sed 's/"\(.*\)"/\1/' | cachix push accentor
commit:
runs-on: ubuntu-latest
needs: [packages, shell]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cachix
uses: cachix/cachix-action@v15
with:
name: accentor
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: true
- run: nix flake update
- uses: stefanzweifel/[email protected]
with:
commit_message: "Update flake dependencies"
commit_user_name: Accentor Bot
commit_user_email: [email protected]
commit_author: Accentor Bot <[email protected]>