11name : Publish Documentation
22on :
33 push :
4- branches : [main]
4+ # TEMPORARY: Run on all branches for testing
5+ # TODO: Restore to branches: [main] before merging
6+ branches : ['**']
57 workflow_dispatch :
68 inputs :
79 deploy_as_release :
@@ -83,18 +85,19 @@ jobs:
8385 FORCE_DEPLOY="${{ github.event.inputs.force_deploy || false }}"
8486 DEPLOY_AS_RELEASE="${{ github.event.inputs.deploy_as_release || inputs.deploy_as_release }}"
8587
86- # Check if we should proceed (main branch or force_deploy)
87- if [[ "$IS_MAIN" == "false" && "$FORCE_DEPLOY" == "false" ]]; then
88- echo "Skipping deployment: not on main branch and force_deploy not set"
89- echo "To deploy from this branch, set force_deploy=true in workflow_dispatch"
90- echo "deploy_latest=$DEPLOY_LATEST" >> $GITHUB_OUTPUT
91- echo "deploy_major=$DEPLOY_MAJOR" >> $GITHUB_OUTPUT
92- echo "deploy_preview=$DEPLOY_PREVIEW" >> $GITHUB_OUTPUT
93- echo "major_version=$MAJOR_VERSION" >> $GITHUB_OUTPUT
94- echo "version=$VERSION" >> $GITHUB_OUTPUT
95- echo "should_deploy=$SHOULD_DEPLOY" >> $GITHUB_OUTPUT
96- exit 0
97- fi
88+ # TEMPORARY: Allow deployment from all branches for testing
89+ # TODO: Restore branch check before merging to main
90+ # if [[ "$IS_MAIN" == "false" && "$FORCE_DEPLOY" == "false" ]]; then
91+ # echo "Skipping deployment: not on main branch and force_deploy not set"
92+ # echo "To deploy from this branch, set force_deploy=true in workflow_dispatch"
93+ # echo "deploy_latest=$DEPLOY_LATEST" >> $GITHUB_OUTPUT
94+ # echo "deploy_major=$DEPLOY_MAJOR" >> $GITHUB_OUTPUT
95+ # echo "deploy_preview=$DEPLOY_PREVIEW" >> $GITHUB_OUTPUT
96+ # echo "major_version=$MAJOR_VERSION" >> $GITHUB_OUTPUT
97+ # echo "version=$VERSION" >> $GITHUB_OUTPUT
98+ # echo "should_deploy=$SHOULD_DEPLOY" >> $GITHUB_OUTPUT
99+ # exit 0
100+ # fi
98101
99102 # Validate manual version format if provided
100103 if [[ ("$IS_MANUAL" == "true" || "${{ github.event_name }}" == "workflow_call") && -n "$DEPLOY_AS_RELEASE" ]]; then
@@ -119,7 +122,8 @@ jobs:
119122 fi
120123
121124 # 1. If on main (or force_deploy) and NOT deploying as release, deploy "preview"
122- if [[ ("$IS_MAIN" == "true" || "$FORCE_DEPLOY" == "true") && -z "$DEPLOY_AS_RELEASE" ]]; then
125+ # TEMPORARY: Treat all branches as main for testing
126+ if [[ -z "$DEPLOY_AS_RELEASE" ]]; then
123127 DEPLOY_PREVIEW="true"
124128 fi
125129
@@ -128,10 +132,8 @@ jobs:
128132 if [[ ("$IS_MANUAL" == "true" || "${{ github.event_name }}" == "workflow_call") && -n "$DEPLOY_AS_RELEASE" && "$IS_PRERELEASE" == "false" ]]; then
129133 DEPLOY_MAJOR="true"
130134
131- # 3. If we're on main (or force_deploy), also deploy "latest"
132- if [[ "$IS_MAIN" == "true" || "$FORCE_DEPLOY" == "true" ]]; then
133- DEPLOY_LATEST="true"
134- fi
135+ # 3. Also deploy "latest" (TEMPORARY: always true for testing)
136+ DEPLOY_LATEST="true"
135137 fi
136138
137139 # Output results
0 commit comments