Add deploy script
This commit is contained in:
parent
6897cc5a7e
commit
7a5ca4c9c5
1 changed files with 9 additions and 0 deletions
9
deploy.sh
Normal file
9
deploy.sh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Uploads the website to Cloudflare Pages
|
||||||
|
|
||||||
|
if ! npm run build; then
|
||||||
|
echo "BUILD FAILED: Not uploading website"
|
||||||
|
else
|
||||||
|
export CLOUDFLARE_ACCOUNT_ID="$(pass show cloudflare/account_id)"
|
||||||
|
npx wrangler pages deploy dist
|
||||||
|
fi
|
Loading…
Reference in a new issue