Skip to content

brand: update logo assets and docs theme to new gradient pinwheel #17

brand: update logo assets and docs theme to new gradient pinwheel

brand: update logo assets and docs theme to new gradient pinwheel #17

name: Deploy Website
on:
push:
branches: [main]
paths:
- "website/**"
workflow_dispatch:
defaults:
run:
working-directory: website
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
package_json_file: website/package.json
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: website/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- run: pnpm build
# Create the Pages project on first run; a no-op once it exists.
- name: Ensure Cloudflare Pages project exists
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: pnpm exec wrangler pages project create pgconsole --production-branch=main || true
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: website
command: pages deploy ./out --project-name=pgconsole