Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Client checks

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
name: Pages delivery

on:
workflow_run:
workflows:
- Client checks
types:
- completed
push:
branches:
- main

permissions:
contents: read

jobs:
identity:
name: Resolve exact current-main delivery
if: >-
github.repository == 'InKCre/client-web' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.head_branch == 'main' &&
github.event.workflow_run.head_repository.full_name == github.repository
runs-on: ubuntu-latest
outputs:
source_sha: ${{ steps.identity.outputs.source_sha }}
Expand All @@ -27,7 +19,7 @@ jobs:
id: identity
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
SOURCE_SHA: ${{ github.event.workflow_run.head_sha }}
SOURCE_SHA: ${{ github.sha }}
with:
script: |
const currentMain = await github.rest.git.getRef({
Expand Down
10 changes: 5 additions & 5 deletions docs/40-deployment/web-delivery.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ The browser-side authority behind this invariant belongs to
## Production Pages

[`.github/workflows/pages-deploy.yml`](../../.github/workflows/pages-deploy.yml) owns production
delivery. A successful `Client checks` run for a protected-`main` push selects that exact source
SHA, while delivery rejects the run if a newer revision supersedes it. The delivery job consumes
no check artifact: it checks out the exact source, installs the frozen workspace, builds the
release, reverifies `main`, and deploys those same-run bytes to the Cloudflare Pages `main` branch
in the protected `production` environment.
delivery. A protected-`main` push selects that exact source SHA after strict required PR checks,
while delivery rejects the run if a newer revision supersedes it. The delivery job checks out the
exact source, installs the frozen workspace, builds the release, reverifies `main`, and deploys
those same-run bytes to the Cloudflare Pages `main` branch in the protected `production`
environment.

The workspace lock owns the exact Wrangler version, and Pages production/preview execute it through
the pinned pnpm toolchain. Preview cleanup is intentionally different: its tombstone is a standalone
Expand Down
Loading