website/.woodpecker.yml
2024-12-01 17:46:54 +04:00

28 lines
662 B
YAML

when:
- event: push
branch: master
steps:
build:
image: node
commands:
- echo "Installing pnpm..."
- npm install -g pnpm
- echo "Installing dependencies..."
- pnpm i --frozen-lockfile
- echo "Building..."
- pnpm run build
deploy:
image: node
environment:
CLOUDFLARE_ACCOUNT_ID:
from_secret: cloudflare_account_id
CLOUDFLARE_API_TOKEN:
from_secret: cloudflare_api_token
commands:
- echo "Installing wrangler..."
- npm install -g wrangler
- echo "Deploying site..."
- npx wrangler pages deploy dist --project-name sakosite --branch main