aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/cachix.yml
blob: 2d37b36a78d71e28e37861a03e5401c63f5ab385 (plain) (blame)
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
# Publish the Nix flake outputs to Cachix
name: Cachix
on:
  push:
    branches:
      - master

jobs:
  publish:
    name: Publish Flake
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources
      uses: actions/checkout@v3

    - name: Install nix
      uses: cachix/install-nix-action@v17

    - name: Authenticate with Cachix
      uses: cachix/cachix-action@v10
      with:
        name: helix
        authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

    - name: Build nix flake
      run: nix build -L