Skip to content

Commit

Permalink
add CI trigger on PR
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Siddharth <[email protected]>
  • Loading branch information
siddharthvipul committed Aug 9, 2024
1 parent d0f1af2 commit 19ddcb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
branches: ["main"]

pull_request:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -68,6 +71,8 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build

if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 19ddcb1

Please sign in to comment.