fix: add NIX_PATH environment variable
Some checks failed
Deploy Website / build-and-deploy (push) Has been cancelled

This commit is contained in:
Andrew Rioux 2025-10-19 23:49:36 -04:00
parent 91aa9af6ae
commit f5756ac652
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94

View File

@ -10,6 +10,7 @@ jobs:
- name: Build article code
run: |
export NIX_PATH=nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels/nixos
/run/current-system/sw/bin/nix-build -A articles
- name: Deploy article HTML
@ -18,6 +19,7 @@ jobs:
${{ secrets.DEPLOY_SSH_KEY }}
EOD
export NIX_PATH=nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels/nixos
/run/current-system/sw/bin/nix-shell -p rsync openssh --run \
'rsync -avz -e "ssh -oStrictHostKeyChecking=accept-new -i ssh-key" result/* deploy@andrew.riouxs.co:/srv/site'