Use cachix to publish binary cache

This commit is contained in:
Dave Gallant
2021-02-15 23:28:45 -05:00
parent b26fe96dc6
commit c295d28a9a
3 changed files with 28 additions and 1 deletions

17
.github/workflows/cachix.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: "Build and push to cachix"
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v8
with:
name: davegallant
authToken: '${{ secrets.CACHIX_API_KEY }}'
- run: nix-build | cachix push davegallant