From c7b32025808a905773f0de2ba4c36cdfba8af89a Mon Sep 17 00:00:00 2001 From: Winter Date: Fri, 19 Jun 2026 01:44:42 -0500 Subject: [PATCH] ci: trigger on tag pushes and push built binary to cachix --- .tangled/workflows/cachix.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.tangled/workflows/cachix.yml b/.tangled/workflows/cachix.yml index d6845d6..b0ad1dc 100644 --- a/.tangled/workflows/cachix.yml +++ b/.tangled/workflows/cachix.yml @@ -1,6 +1,8 @@ when: - event: ["push", "manual"] branch: ["main"] + - event: ["push"] + tag: ["v*"] engine: nixery @@ -15,9 +17,15 @@ environment: steps: - name: build and push to cachix + # CACHIX_AUTH_TOKEN must be configured as a repo secret (Settings -> Secrets). + # `cachix use` lets the build substitute unchanged paths from the cache. + # `watch-exec` captures build-time deps (the go-modules FOD); the explicit + # `cachix push ./result` then guarantees the final binary output is pushed + # (watch-exec can miss the last path produced as the command exits). command: | cachix use madoka-systems cachix watch-exec madoka-systems -- \ nix build --print-build-logs \ --extra-experimental-features 'nix-command flakes' \ '.#wisp-deploy' + cachix push madoka-systems ./result -- 2.51.2