diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 294697d..582696f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,12 +1,18 @@ name: Deploy to GitHub Pages on: - push: + pull_request: + types: + - closed branches: - main + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + jobs: deploy: + if: github.event.pull_request.merged == true name: Deploy to GitHub Pages runs-on: ubuntu-latest steps: