Skip to content

Automate the hosted UI (app.propr.dev) deployment for releases. Check current upstream main first. #3408

Closed

Description

@propr-dev

Automate the hosted UI (app.propr.dev) deployment for releases. Check current upstream main first.

Today app.propr.dev is the Cloudflare Worker propr-hosted-ui (wrangler.hosted-ui.toml: static assets from ./propr-ui/dist, custom domain app.propr.dev, SPA not-found handling). It is only deployed manually with npm run deploy:hosted-ui (npm run build -w propr-ui && npx wrangler deploy --config wrangler.hosted-ui.toml) from a maintainer machine, so the v0.9.0 release left it on 0.8.15 until someone deployed by hand.

Add a release deployment for it:

  1. A job in .github/workflows/docker-images.yml that runs after publish-github-release succeeds, for both tag pushes and the manual workflow_dispatch release path; or a separate workflow triggered from it with equivalent gating. It checks out the exact release ref, does a locked install, builds propr-ui the same way deploy:hosted-ui does, and runs wrangler deploy --config wrangler.hosted-ui.toml with CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID.
  2. Run it in a protected GitHub environment, hosted-ui-production, holding those two secrets, so the token is only available to this job and never to PR or build jobs. If the environment or secrets are missing, the job must skip with a clear notice rather than fail the whole release, because the release artifacts are already published at that point.
  3. Verify after deploy: fetch https://app.propr.dev/, resolve its /assets/index-*.js, and assert the bundle contains the released version string (the way the release check grepped for "0.9.0"), with a few retries for propagation.
  4. Keep npm run deploy:hosted-ui for manual use. Document in docs/docs/operations/ (the release or deployment docs) how to create the scoped Cloudflare API token (Account > Workers Scripts: Edit and the minimal permissions wrangler needs for a custom-domain Worker deploy; no zone-wide edit unless strictly needed) and how to add it to the environment.
  5. Add workflow contract tests in the repo's existing style (job gated on release success, environment-scoped secrets, exact ref, no secrets in other jobs), plus actionlint and zizmor if the repo uses them, and an [Unreleased] CHANGELOG entry.

One focused PR ready for review. Do not auto-merge, tag, publish or deploy.


Submitted by @integry through ProPR.

Activity

  1. propr-dev commented on Oct 31, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3408/claude-opus-5-5-automate-the-hosted-ui-ap-20261031-2319-309
    • Base Branch: main
    • Worktree: issue-3408-20261031-2319-claude-opus-5-5-309

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions