From bdbc5caf8e9baea536759e6c01d5550df13b4ba1 Mon Sep 17 00:00:00 2001 From: Julia McGhee Date: Fri, 20 Mar 2026 19:44:01 +0000 Subject: [PATCH] Add workflow_dispatch to deploy-production with force-build-all Manual triggers build all apps since turbo's change filter doesn't apply when there's no push diff to compare against. --- .github/workflows/deploy-production.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-production.yaml b/.github/workflows/deploy-production.yaml index c4207d2..da867ec 100644 --- a/.github/workflows/deploy-production.yaml +++ b/.github/workflows/deploy-production.yaml @@ -3,6 +3,7 @@ name: Deploy Production on: push: branches: [main] + workflow_dispatch: jobs: deploy: @@ -22,7 +23,11 @@ jobs: - name: Determine changed apps id: changes run: | - APPS=$(pnpm turbo build --filter='...[HEAD~1]' --dry-run=json | jq -r '[.packages[] | select(startswith("@homelab/")) | sub("@homelab/";"") ] | join(",")') + if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then + APPS="web,api" + else + APPS=$(pnpm turbo build --filter='...[HEAD~1]' --dry-run=json | jq -r '[.packages[] | select(startswith("@homelab/")) | sub("@homelab/";"") ] | join(",")') + fi echo "apps=$APPS" >> "$GITHUB_OUTPUT" - name: Build and push images