Skip to content

Commit

Permalink
Merge pull request #105 from sbv-world-health-org-metrics/build-on-pr
Browse files Browse the repository at this point in the history
Add pull_request for next build
  • Loading branch information
ipc103 authored Mar 6, 2024
2 parents bfd2fbc + becdc97 commit 24714e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

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

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -105,6 +106,8 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
# Don't deploy PRs, just test the build...
if: github.event_name != "pull_request"
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 24714e0

Please sign in to comment.