fix: use full path for nix-env in deploy step
Build & Deploy (Nix) / build-and-deploy (push) Failing after 47s

The deploy step runs with 'sudo' which resets PATH, so nix-env is
not found. Use explicit path to the nix-env binary.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-30 15:33:29 +07:00
parent 4acfa3d2e9
commit 319d2980c5
+2 -1
View File
@@ -28,7 +28,8 @@ jobs:
run: | run: |
set -eu set -eu
STORE_PATH=$(readlink result) STORE_PATH=$(readlink result)
sudo nix-env --profile /nix/var/nix/profiles/teleuploader --set "$STORE_PATH" NIX_ENV="/nix/var/nix/profiles/default/bin/nix-env"
sudo "$NIX_ENV" --profile /nix/var/nix/profiles/teleuploader --set "$STORE_PATH"
sudo systemctl restart teleuploader sudo systemctl restart teleuploader
sleep 3 sleep 3
sudo systemctl status teleuploader --no-pager | head -15 sudo systemctl status teleuploader --no-pager | head -15