-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (30 loc) · 984 Bytes
/
push_to_cachix.yaml
File metadata and controls
30 lines (30 loc) · 984 Bytes
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
name: "push_to_cachix"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 6"
env:
CACHIX_CACHE_NAME: ruixi-rebirth
jobs:
push_to_cachix:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Flake check
run: nix flake check
- name: Setup cachix
uses: cachix/cachix-action@v16
with:
name: ${{ env.CACHIX_CACHE_NAME }}
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Push build results to Cachix
run: nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push $CACHIX_CACHE_NAME