2022-03-01 20:12:50 -06:00
|
|
|
# Publish the Nix flake outputs to Cachix
|
|
|
|
name: Cachix
|
|
|
|
on:
|
2022-03-02 11:18:29 +09:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-03-01 20:12:50 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
name: Publish Flake
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2022-03-08 09:12:37 +09:00
|
|
|
uses: actions/checkout@v3
|
2022-03-01 20:12:50 -06:00
|
|
|
|
|
|
|
- name: Install nix
|
2023-05-30 09:49:45 +09:00
|
|
|
uses: cachix/install-nix-action@v21
|
2022-03-01 20:12:50 -06:00
|
|
|
|
|
|
|
- name: Authenticate with Cachix
|
2022-10-31 18:21:51 -05:00
|
|
|
uses: cachix/cachix-action@v12
|
2022-03-01 20:12:50 -06:00
|
|
|
with:
|
|
|
|
name: helix
|
|
|
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build nix flake
|
2022-09-03 01:54:07 +03:00
|
|
|
run: nix build -L
|