2022-03-02 06:12:50 +04:00
|
|
|
# Publish the Nix flake outputs to Cachix
|
|
|
|
name: Cachix
|
|
|
|
on:
|
2022-03-02 06:18:29 +04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-03-02 06:12:50 +04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
name: Publish Flake
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2022-03-08 04:12:37 +04:00
|
|
|
uses: actions/checkout@v3
|
2022-03-02 06:12:50 +04:00
|
|
|
|
|
|
|
- name: Install nix
|
2022-04-12 03:34:39 +04:00
|
|
|
uses: cachix/install-nix-action@v17
|
2022-03-02 06:12:50 +04:00
|
|
|
|
|
|
|
- name: Authenticate with Cachix
|
|
|
|
uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: helix
|
|
|
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build nix flake
|
|
|
|
run: nix build
|