From 56b7674cb5760b7766ed4b148d1743513eaee7ad Mon Sep 17 00:00:00 2001 From: Wittano Date: Tue, 28 Nov 2023 17:39:23 +0100 Subject: [PATCH] feat(github): added cachnix workflow --- .github/workflows/cachix.yml | 22 +++++++++++++++++++++- default.nix | 1 + 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml index 893c688..c68a61a 100644 --- a/.github/workflows/cachix.yml +++ b/.github/workflows/cachix.yml @@ -1 +1,21 @@ -# TODO Create pipeline for nix cache result of filebot \ No newline at end of file +name: Build filebot for cachnix +run-name: Build filebot for cachnix +on: [ release ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: "Install Nix" + uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: "Install Cachix" + uses: cachix/cachix-action@v12 + with: + name: wittano-nix-repo + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: "Check nix packages" + run: nix flake check + - name: "Build packages" + run: "nix build .#packages.x86_64-linux.default" \ No newline at end of file diff --git a/default.nix b/default.nix index 457c922..d834cf9 100644 --- a/default.nix +++ b/default.nix @@ -3,6 +3,7 @@ buildGoModule rec { name = "filebot"; src = ./.; + version = "v1.0.0"; vendorHash = "sha256-plRphEIwtPoej+bM4fChhOjBGO/BJ2KoCjZnyD/Z634=";