fix: add NIX_PATH environment variable
Some checks failed
Deploy Website / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy Website / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
91aa9af6ae
commit
f5756ac652
@ -10,6 +10,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build article code
|
- name: Build article code
|
||||||
run: |
|
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
|
/run/current-system/sw/bin/nix-build -A articles
|
||||||
|
|
||||||
- name: Deploy article HTML
|
- name: Deploy article HTML
|
||||||
@ -18,6 +19,7 @@ jobs:
|
|||||||
${{ secrets.DEPLOY_SSH_KEY }}
|
${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
EOD
|
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 \
|
/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'
|
'rsync -avz -e "ssh -oStrictHostKeyChecking=accept-new -i ssh-key" result/* deploy@andrew.riouxs.co:/srv/site'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user