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 }}