2024-11-15 15:25:56 +04:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: master
|
|
|
|
|
2024-11-15 11:22:40 +04:00
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
image: node
|
2024-11-15 15:52:55 +04:00
|
|
|
commands:
|
2024-12-01 12:04:36 +04:00
|
|
|
- echo "Installing pnpm..."
|
2024-11-15 15:52:55 +04:00
|
|
|
- npm install -g pnpm
|
2024-12-01 12:04:36 +04:00
|
|
|
- echo "Installing dependencies..."
|
2024-11-15 15:52:55 +04:00
|
|
|
- pnpm i --frozen-lockfile
|
2024-12-01 12:04:36 +04:00
|
|
|
- echo "Building..."
|
2024-11-15 15:52:55 +04:00
|
|
|
- pnpm run build
|
|
|
|
deploy:
|
|
|
|
image: node
|
2024-12-01 12:04:36 +04:00
|
|
|
environment:
|
|
|
|
CLOUDFLARE_ACCOUNT_ID:
|
|
|
|
from_secret: cloudflare_account_id
|
|
|
|
CLOUDFLARE_API_TOKEN:
|
|
|
|
from_secret: cloudflare_api_token
|
2024-11-15 15:52:55 +04:00
|
|
|
commands:
|
2024-12-01 12:04:36 +04:00
|
|
|
- echo "Deploying site..."
|
|
|
|
- pnpm wrangler pages deploy dist --project-name sakosite --branch main
|
2024-12-01 15:06:59 +04:00
|
|
|
|
|
|
|
|