18 lines
375 B
YAML
18 lines
375 B
YAML
when:
|
|
- event: push
|
|
branch: master
|
|
|
|
steps:
|
|
build:
|
|
image: node
|
|
commands:
|
|
- npm install -g pnpm
|
|
- pnpm i --frozen-lockfile
|
|
- pnpm run build
|
|
deploy:
|
|
image: node
|
|
secrets: [cloudflare_account_id, cloudflare_api_token]
|
|
commands:
|
|
- npm i -g wrangler
|
|
- npx wrangler pages deploy dist --project-name sakosite --branch main
|
|
|