From d12d496d9835d2e562e6ba32bb8f0b1aeb8b6e4b Mon Sep 17 00:00:00 2001 From: Abdulaziz Alaboudi Date: Sun, 18 Feb 2024 22:08:33 +0300 Subject: [PATCH] Update DeployAstro.yml --- .github/workflows/DeployAstro.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/DeployAstro.yml b/.github/workflows/DeployAstro.yml index b58eff5..b7e58aa 100644 --- a/.github/workflows/DeployAstro.yml +++ b/.github/workflows/DeployAstro.yml @@ -1,9 +1,9 @@ name: Deploy Astro site to Pages on: - push: - branches: - - main + pull_request_target: + types: + - closed # Allows you to run this workflow manually from the Actions tab @@ -59,6 +59,7 @@ jobs: path: ${{ env.BUILD_PATH }}/dist deploy: + if: github.event.pull_request.merged == true environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}