Files
iot-dc3/.github/workflows/deploy-ghpages.yml
pnokerandClaude Fable 5 c8e65ceafa ci(web): widen deploy-pages tolerance for Pages queue stalls
The first deploy after enabling the demo.dc3.site custom domain landed in
deployment_queued and was cancelled by the Pages backend. Bump error_count
(10→20) and timeout (10m→15m) so transient queue stalls can ride through
instead of aborting.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 21:37:57 +08:00

79 lines
2.0 KiB
YAML

name: Deploy Web Demo to GitHub Pages
# Builds the static mock-demo variant of dc3-web (no backend) and publishes it
# to GitHub Pages at the custom domain demo.dc3.site (public/CNAME). One-time
# repo setup: Settings → Pages → Source = "GitHub Actions", Custom domain =
# demo.dc3.site. DNS: point demo.dc3.site to the GitHub Pages servers
# (CNAME → <user>.github.io, or A records for an apex domain).
on:
push:
branches:
- main
paths:
- dc3-web/**
- .github/workflows/deploy-ghpages.yml
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: deploy-ghpages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dc3-web
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Set pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86
with:
package_json_file: dc3-web/package.json
- name: Set Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: 22
cache: pnpm
cache-dependency-path: dc3-web/pnpm-lock.yaml
- name: Install
run: pnpm install --frozen-lockfile
- name: Build (mock mode)
run: pnpm build:mock
- name: Configure Pages
id: pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dc3-web/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
# Tolerate transient Pages-backend queue stalls (the deployment
# occasionally lands in deployment_queued and needs extra polls).
error_count: 20
timeout: 900000