Skip to content

fix(sw): do not let a busy worker's silence cancel the reload that re… #309

fix(sw): do not let a busy worker's silence cancel the reload that re…

fix(sw): do not let a busy worker's silence cancel the reload that re… #309

name: pages-build-site
on:
# The editor now lives at https://edit.chaxus.com (Cloudflare Pages).
# GitHub Pages publishes ONLY a client-side redirector (redirect/), so old
# ranuts.github.io/document/* links keep working (path + query preserved).
# The app now deploys to Cloudflare Pages from `main`, so GitHub Pages is
# main-based too: any push to main republishes the redirector. workflow_dispatch
# lets you trigger the first redirector deploy by hand once Cloudflare is live.
push:
branches:
- main
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
name: Publish redirector
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v7
# No build: just ship the static redirector (redirect/index.html + 404.html).
- name: Upload redirector artifact
uses: actions/upload-pages-artifact@v5
with:
path: "./redirect"
deploy:
name: Deploy to GitHub Pages
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5