aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMichael Davis2022-03-02 02:12:50 +0000
committerGitHub2022-03-02 02:12:50 +0000
commit227e0108e9b32be5f3ad7bf7343c821884b7d9ba (patch)
tree013f0b2b7801b0caa12fe319d2417624250ad41b /.github/workflows
parenta76e94848a69e24a94501b47efac2ca94aaf1257 (diff)
add workflow for pushing nix flake artifacts to Cachix (#1721)
* add workflow for pushing nix flake artifacts to Cachix * add docs on using the cachix cache from nix * remove submodule clone from cachix workflow * remove flake check
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cachix.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml
new file mode 100644
index 00000000..dcc24eb9
--- /dev/null
+++ b/.github/workflows/cachix.yml
@@ -0,0 +1,24 @@
+# Publish the Nix flake outputs to Cachix
+name: Cachix
+on:
+ push: master
+
+jobs:
+ publish:
+ name: Publish Flake
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v2
+
+ - name: Install nix
+ uses: cachix/install-nix-action@v16
+
+ - name: Authenticate with Cachix
+ uses: cachix/cachix-action@v10
+ with:
+ name: helix
+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
+
+ - name: Build nix flake
+ run: nix build