on master help sign in
add workflow for pushing nix flake artifacts to Cachix (#1721)
227e010Michael Davis
.github/workflows/cachix.ymlnew file+24
@@ -0,0 +1,24 @@
1+# Publish the Nix flake outputs to Cachix
2+name: Cachix
3+on:
4+ push: master
5+
6+jobs:
7+ publish:
8+ name: Publish Flake
9+ runs-on: ubuntu-latest
10+ steps:
11+ - name: Checkout sources
12+ uses: actions/checkout@v2
13+
14+ - name: Install nix
15+ uses: cachix/install-nix-action@v16
16+
17+ - name: Authenticate with Cachix
18+ uses: cachix/cachix-action@v10
19+ with:
20+ name: helix
21+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
22+
23+ - name: Build nix flake
24+ run: nix build
book/src/install.md+6−1
@@ -19,7 +19,12 @@ brew install helix
19
19
20A [flake](https://nixos.wiki/wiki/Flakes) containing the package is available in
20A [flake](https://nixos.wiki/wiki/Flakes) containing the package is available in
21the project root. The flake can also be used to spin up a reproducible development
21the project root. The flake can also be used to spin up a reproducible development
22−shell for working on Helix.
22+shell for working on Helix with `nix develop`.
23+
24+Flake outputs are cached for each push to master using
25+[Cachix](https://www.cachix.org/). With Cachix
26+[installed](https://docs.cachix.org/installation), `cachix use helix` will
27+configure Nix to use cached outputs when possible.
23
28
24### Arch Linux
29### Arch Linux
25
30