Skip to content

Commit

Permalink
Merge pull request #108 from sbv-world-health-org-metrics/build-on-pr…
Browse files Browse the repository at this point in the history
…-take-two

Run build step on PR
  • Loading branch information
ajhenry authored Mar 20, 2024
2 parents 1b831a0 + 4eab93d commit c7688e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Build step runs on each pull request
pull_request:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand Down Expand Up @@ -104,6 +107,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
needs: build
steps:
- name: Deploy to GitHub Pages
Expand Down

0 comments on commit c7688e8

Please sign in to comment.