1 files changed, 24 insertions(+), 0 deletions(-)
A .build.yml
A .build.yml => .build.yml +24 -0
@@ 0,0 1,24 @@
+image: alpine/edge
+packages:
+- nodejs
+- npm
+secrets:
+- 15ecff23-0c2c-46bd-bf7d-cdc682deeb63
+- 226db336-c96a-45eb-b55d-28cece902cb3
+sources:
+- https://git.sr.ht/~ekez/discord-notifier
+tasks:
+- deploy: |
+ cd discord-notifier
+ wget https://github.com/cloudflare/wrangler/releases/download/v1.19.0/wrangler-v1.19.0-x86_64-unknown-linux-musl.tar.gz
+ tar -xf wrangler-v1.19.0-x86_64-unknown-linux-musl.tar.gz
+ cp dist/wrangler discord-server
+ cd discord-server
+ set +x
+ CF_API_TOKEN=$(cat ~/.CF_API_TOKEN) ./wrangler publish
+ curl \
+ -X POST \
+ -H "Content-Type: application/json" \
+ -d '{"content":"'"discord [webpage](https://discord.negativefour.com) deployment complete"'"}' \
+ $(cat ~/.WEBHOOK_URL)
+ set -x