37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Deploy primary production Worker candidate
|
|
|
|
on:
|
|
push:
|
|
branches: [astro-platform-pilot]
|
|
paths: [.gitea/workflows/production-candidate.yml]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
candidate:
|
|
name: Build and deploy 3031023.xyz candidate
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
env:
|
|
SITE_KEY: www
|
|
DEPLOY_ENV: production
|
|
ASTRO_TELEMETRY_DISABLED: '1'
|
|
steps:
|
|
- name: Checkout source
|
|
uses: https://github.com/actions/checkout@v4
|
|
- name: Use Node 22
|
|
uses: https://github.com/actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- name: Install locked dependencies
|
|
run: npm ci
|
|
- name: Validate and build production candidate
|
|
run: npm run build:site
|
|
- name: Verify production candidate output
|
|
run: npm run verify:build
|
|
- name: Deploy Worker without custom domains or routes
|
|
run: npx wrangler deploy --config wrangler/www.production.jsonc
|
|
env:
|
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|