From f5e243f759a0285fbc2c2c4abdd95328d7537ad6 Mon Sep 17 00:00:00 2001 From: Spencer Jones Date: Fri, 19 Dec 2025 17:54:58 -0700 Subject: [PATCH] action definition update --- .gitea/workflows/deploy.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b02b32c..a311e47 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -2,13 +2,30 @@ name: Build and Deploy Blog on: pull_request: + types: [opened, synchronize, reopened] branches: [main] - push: + pull_request: + types: [closed] branches: [main] jobs: + test-build: + if: github.event_name == 'pull_request' && github.event.action != 'closed' + runs-on: debian-trixie + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm ci + + - name: Build Astro site + run: npm run build + deploy: - runs-on: debian-trixie # Matches your runner label + if: github.event.pull_request.merged == true + runs-on: debian-trixie steps: - name: Checkout code