mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
Use Woodpecker and Cloudflare Wrangler for deployments
This commit is contained in:
parent
967c3545a6
commit
abc8d0522f
1 changed files with 18 additions and 0 deletions
18
.woodpecker/.deploy.yml
Normal file
18
.woodpecker/.deploy.yml
Normal file
|
@ -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]
|
Loading…
Reference in a new issue