Skip to content

Commit

Permalink
Merge pull request #11 from WayneGoosen/feat/ci
Browse files Browse the repository at this point in the history
Add conditional job and trigger for pull requests
  • Loading branch information
WayneGoosen authored Apr 30, 2024
2 parents 6511a50 + 2b542b2 commit 98229cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

Expand All @@ -28,6 +30,7 @@ jobs:
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
Expand Down

0 comments on commit 98229cd

Please sign in to comment.