From bb8ab4256192fe2fd4da10b488955449c553271f Mon Sep 17 00:00:00 2001 From: musjj <72612857+musjj@users.noreply.github.com> Date: Wed, 28 Feb 2024 00:45:41 +0700 Subject: [PATCH] ci: add cachix workflow (#740) --- .github/workflows/cachix.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..ab0c4a4f --- /dev/null +++ b/.github/workflows/cachix.yml @@ -0,0 +1,29 @@ +# Publish the Nix flake outputs to Cachix +name: Cachix +on: + push: + branches: + - main + +jobs: + publish: + name: Publish Flake + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + 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