Skip to content

Commit 5a08c5c

Browse files
feat(ci): use optimized deployment workflow in GitHub Actions
Update deploy-docs workflow to use the new justfile recipes that implement version promotion. This enables safer deployments by promoting tested preview versions instead of rebuilding. Changes: - Replace direct wrangler calls with justfile recipes - Add GITHUB_ACTIONS, GITHUB_ACTOR, GITHUB_WORKFLOW env vars - Preview: use just cf-deploy-preview - Production: use just cf-deploy-production (auto-promotes if available)
1 parent f38467c commit 5a08c5c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,14 @@ jobs:
125125
id: deployment
126126
env:
127127
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
128+
GITHUB_ACTIONS: true
129+
GITHUB_ACTOR: ${{ github.actor }}
130+
GITHUB_WORKFLOW: ${{ github.workflow }}
128131
run: |
129-
cd packages/docs
130132
if [ "${{ inputs.environment }}" = "preview" ]; then
131-
nix develop -c sops exec-env ../../vars/shared.yaml "bunx wrangler versions upload --preview-alias b-${{ inputs.branch }}"
133+
echo "Deploying preview for branch: ${{ inputs.branch }}"
134+
nix develop -c just cf-deploy-preview ${{ inputs.branch }}
132135
else
133-
nix develop -c sops exec-env ../../vars/shared.yaml "bunx wrangler deploy"
136+
echo "Deploying to production (promoting existing version if available)"
137+
nix develop -c just cf-deploy-production
134138
fi

0 commit comments

Comments
 (0)