From 809af775bfee5e5112c277818bdfa5a57b305b1d Mon Sep 17 00:00:00 2001 From: musjj <72612857+musjj@users.noreply.github.com> Date: Tue, 27 Feb 2024 18:21:52 +0700 Subject: [PATCH] ci: add cachix workflow Fix: https://github.com/sxyazi/yazi/issues/495 --- .github/workflows/cachix.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cachix.yml diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml new file mode 100644 index 00000000..a823d51d --- /dev/null +++ b/.github/workflows/cachix.yml @@ -0,0 +1,26 @@ +# Publish the Nix flake outputs to Cachix +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@v25 + + - name: Authenticate with Cachix + uses: cachix/cachix-action@v14 + with: + name: yazi + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: Build nix flake + run: nix build -L