From 4e956393c4f7806aa8439591cc4e17184a6edc32 Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:10:10 -0400 Subject: [PATCH 1/2] ci: Inline Cloudflare Pages project name Replace vars.CLOUDFLARE_PROJECT_NAME with the literal project name the workflow already deploys to. The variable was scoped to a single environment, so it silently resolves to empty in any other environment. Matches facioquo/schemas deploy.yml. --- .github/workflows/deploy-website.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 2c7d63d8..68c1cfe7 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -69,4 +69,4 @@ jobs: wranglerVersion: "latest" command: > pages deploy docs/_site - --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} + --project-name=stock-indicators-python From e5768446801f8cf0d00caa3d9bf51f33bfb1590c Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:17:55 -0400 Subject: [PATCH 2/2] ci: Derive deploy environment from the branch ref Select the environment from github.ref rather than the event type, so a workflow_dispatch off a feature branch resolves to preview instead of production. Production is only reached from the default branch. --- .github/workflows/deploy-website.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 68c1cfe7..238eac6d 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -24,7 +24,7 @@ jobs: JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} environment: - name: stockindicators.dev + name: ${{ github.ref == 'refs/heads/main' && 'stockindicators.dev' || 'preview' }} url: ${{ steps.deploy.outputs.pages-deployment-alias-url }} steps: