Skip to content

Commit 619449c

Browse files
feat(ci): enable preview deployments via docs-preview label
Add support for triggering preview deployments by adding the 'docs-preview' label to pull requests. This enables on-demand testing of documentation changes before merging. When the label is present: - DEPLOY_ENABLED is set to "true" - DEPLOY_ENVIRONMENT is set to "preview" - deploy job runs and calls cf-deploy-preview recipe - Version is uploaded with branch-specific preview alias This preserves the sophisticated version promotion workflow while adding label-based deployment control, following a pattern similar to existing skip-ci and actions-debug labels. Preview URL format: https://b-{branch}-ts-nix-docs.sciexp.workers.dev
1 parent 7261dc1 commit 619449c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ jobs:
109109
if ${{ contains(github.event.pull_request.labels.*.name, 'actions-debug') }}; then
110110
DEBUG="true"
111111
fi
112+
if ${{ contains(github.event.pull_request.labels.*.name, 'docs-preview') }}; then
113+
DEPLOY_ENABLED="true"
114+
DEPLOY_ENVIRONMENT="preview"
115+
fi
112116
CHECKOUT_REF="${{ github.event.pull_request.head.ref }}"
113117
CHECKOUT_REV="${{ github.event.pull_request.head.sha }}"
114118
else

0 commit comments

Comments
 (0)