Notes/.woodpecker/.deploy.yml

17 lines
484 B
YAML
Raw Normal View History

steps:
- name: deploy
image: node:18-alpine
when:
- branch: master
event: push
environment:
2024-10-17 16:13:10 +08:00
CLOUDFLARE_ACCOUNT_ID:
from_secret: CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_API_TOKEN:
from_secret: CLOUDFLARE_API_TOKEN
commands:
2024-10-17 16:13:10 +08:00
- npm install --save-dev
2024-11-12 18:08:09 +08:00
- npm run build
- npx wrangler pages deploy "./build/" --project-name blog --branch master --commit-dirty
2024-10-17 16:13:10 +08:00
secrets: [CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN]