🏡 index : ~doyle/rgit.git

author Jordan Doyle <jordan@doyle.la> 2025-01-06 22:13:35.0 +07:00:00
committer Jordan Doyle <jordan@doyle.la> 2025-01-06 22:19:50.0 +07:00:00
commit
a72dd066cc1bddd14054086dfd9c1f1b3de8e540 [patch]
tree
b65ed30dc915ccdcf5e1c32e9f83bd4f8b678673
parent
b13b80405d4b490d01a7be34835d439e82a60397
download
a72dd066cc1bddd14054086dfd9c1f1b3de8e540.tar.gz

Push builds to Cachix



Diff

 flake.nix                    |  5 +++++
 .github/workflows/cachix.yml | 23 +++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/flake.nix b/flake.nix
index a2a2506..2322e97 100644
--- a/flake.nix
+++ a/flake.nix
@@ -171,4 +171,9 @@
            };
          };
      });

  nixConfig = {
    extra-substituters = ["https://rgit.cachix.org"];
    extra-trusted-public-keys = ["rgit.cachix.org-1:3Wva/GHhrlhbYx+ObbEYQSYq1Yzk8x9OAvEvcYazgL0="];
  };
}
diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml
new file mode 100644
index 0000000..fcc6744 100644
--- /dev/null
+++ a/.github/workflows/cachix.yml
@@ -1,0 +1,23 @@
name: Cachix

on:
  push:
    branches:
      - main

jobs:
  publish:
    name: Publish Flake
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources
      uses: actions/checkout@v4
    - name: Install nix
      uses: cachix/install-nix-action@v30
    - name: Authenticate with Cachix
      uses: cachix/cachix-action@v15
      with:
        name: rgit
        authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
    - name: Build nix flake
      run: nix build -L