Skip to content

Commit

Permalink
making CI only runs on merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Alaboudi1 committed Feb 18, 2024
1 parent d27d1e5 commit 2fe6ffa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/DeployAstro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Deploy Astro site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
pull_request:
types:
- closed


# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -24,6 +26,7 @@ concurrency:
env:
BUILD_PATH: "./homepage"


jobs:
build:
name: Build
Expand Down Expand Up @@ -58,6 +61,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 }}
Expand Down

0 comments on commit 2fe6ffa

Please sign in to comment.