Skip to content

Commit

Permalink
* fix workflow to deploy only when PR is merged into main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusAquarius committed Sep 30, 2024
1 parent e6c5f13 commit 31b43b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
deploy:
# only deploy when PR has been merged to main branch & build job was successfully finished
if: github.event.pull_request.merged == true
needs: build

runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
# Deploy recent build and push it to branch 'gh-pages'
# this will trigger the action 'pages build & deployment' to host the recent build
Expand Down

0 comments on commit 31b43b5

Please sign in to comment.