ci: make deploy workflow independent of nix

This commit is contained in:
every.channel 2026-02-16 00:39:26 -05:00
parent f9c4f9e63c
commit d6a9af8f1e
No known key found for this signature in database

View file

@ -29,9 +29,26 @@ jobs:
git clone "https://every-channel:${CODEBERG_TOKEN}@codeberg.org/every-channel/every.channel.git" .repo
cd .repo
fi
if ! command -v nix >/dev/null 2>&1; then
curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
if ! command -v cargo >/dev/null 2>&1; then
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
. "$HOME/.cargo/env"
elif [[ -f "$HOME/.cargo/env" ]]; then
. "$HOME/.cargo/env"
fi
nix --version
./scripts/deploy-workers.sh
rustup target add wasm32-unknown-unknown
if ! command -v trunk >/dev/null 2>&1; then
cargo install trunk --locked
fi
if ! command -v npm >/dev/null 2>&1; then
echo "error: npm is not available on this runner"
exit 2
fi
cd apps/tauri/ui
trunk build --release --public-url /
cd ../../../deploy/cloudflare-worker
npm ci
npx wrangler deploy