/ .build.yaml
.build.yaml
1 image: nixos/unstable 2 sources: 3 - git@git.sr.ht:~pamplemousse/Alfred 4 secrets: 5 - 8aa9716e-6917-43cf-b696-9255861bcedd # authtoken for alfred.cachix.org 6 environment: 7 NIX_CONFIG: "experimental-features = nix-command flakes" 8 tasks: 9 - check: | 10 nix run github:nixos/nixpkgs#cachix use alfred 11 12 cd Alfred 13 nix flake check 14 15 - push-to-cache: | 16 echo "(hidden) authentication to \`cachix\`" 17 set +x 18 nix run github:nixos/nixpkgs#cachix authtoken "$(cat ~/.cachix/alfred)" 19 set -x 20 21 cd Alfred 22 nix build --no-link --print-out-paths \ 23 | nix run github:nixos/nixpkgs#cachix push alfred 24 triggers: 25 - action: email 26 condition: failure 27 to: admin@xaviermaso.com