ci: make deploy workflow independent of nix
This commit is contained in:
parent
f9c4f9e63c
commit
d6a9af8f1e
1 changed files with 22 additions and 5 deletions
|
|
@ -29,9 +29,26 @@ jobs:
|
||||||
git clone "https://every-channel:${CODEBERG_TOKEN}@codeberg.org/every-channel/every.channel.git" .repo
|
git clone "https://every-channel:${CODEBERG_TOKEN}@codeberg.org/every-channel/every.channel.git" .repo
|
||||||
cd .repo
|
cd .repo
|
||||||
fi
|
fi
|
||||||
if ! command -v nix >/dev/null 2>&1; then
|
|
||||||
curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
|
if ! command -v cargo >/dev/null 2>&1; then
|
||||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
elif [[ -f "$HOME/.cargo/env" ]]; then
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
fi
|
fi
|
||||||
nix --version
|
rustup target add wasm32-unknown-unknown
|
||||||
./scripts/deploy-workers.sh
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue