From a56a628392e6ae5efc78ae860ca4fd211dc8540b Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Mon, 10 Nov 2025 11:57:11 +0100 Subject: [PATCH] only run the deployment if the CI workflow has succeeded (vibe-kanban 433cfca7) --- .github/workflows/deploy.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2edcf7b..9764d2b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,13 +1,18 @@ name: Deploy to GitHub Pages on: - push: + workflow_run: + workflows: ["CI"] + types: + - completed branches: - main jobs: deploy: runs-on: ubuntu-latest + # Only run if the CI workflow succeeded + if: ${{ github.event.workflow_run.conclusion == 'success' }} permissions: contents: read pages: write @@ -25,12 +30,6 @@ jobs: - name: Install dependencies run: npm ci - - name: Run linter - run: npm run lint - - - name: Run tests - run: npm run test:run - - name: Build production files (includes type check) run: npm run build