From abc8d0522fd037286fb9473381936c86af9f7f05 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 17 Oct 2024 16:06:50 +0800 Subject: [PATCH] Use Woodpecker and Cloudflare Wrangler for deployments --- .woodpecker/.deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .woodpecker/.deploy.yml diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml new file mode 100644 index 0000000..ff278a6 --- /dev/null +++ b/.woodpecker/.deploy.yml @@ -0,0 +1,18 @@ +# .woodpecker.yml +steps: + - name: build & copy + image: node:18-alpine + when: + - branch: master + event: push + environment: + CF_ACCOUNT_ID: + from_secret: CF_ACCOUNT_ID + CF_API_TOKEN: + from_secret: CF_API_TOKEN + commands: + - npm install + - npm run build + - npm install --global wrangler + - npx wrangler pages deploy "./build/" --project-name blog --branch master --commit-dirty + secrets: [CF_ACCOUNT_ID, CF_API_TOKEN]