Add cachix cache #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cache to Cachix | |
| on: [push] | |
| jobs: | |
| cache: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v27 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - uses: cachix/cachix-action@v12 | |
| with: | |
| name: balds | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - name: Push to Cachix | |
| run: nix build --no-link --print-out-paths | cachix push balds |