ci: bootstrap nix on hosted runners before deploy

This commit is contained in:
every.channel 2026-02-16 00:33:47 -05:00
parent 5d55bc1d52
commit e4fc36035b
No known key found for this signature in database

View file

@ -20,6 +20,9 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: | run: |
set -euo pipefail set -euo pipefail
pwd if ! command -v nix >/dev/null 2>&1; then
ls -la curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi
nix --version
./scripts/deploy-workers.sh ./scripts/deploy-workers.sh