Skip to content

Commit

Permalink
CFWEB-91 - Update dependencies
Browse files Browse the repository at this point in the history
* only deploy to github ppages when PR has been merged to main branch
  • Loading branch information
MariusAquarius committed Dec 20, 2023
1 parent f63bdb6 commit 9257670
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ jobs:
run: |
npm run e2e:wdio:ci
deploy:
# only deploy when PR has been merged to main branch & build job was successfully finished
if: github.event.pull_request.merged
needs: build

runs-on: ubuntu-latest
steps:
# Deploy recent build and push it to branch 'gh-pages'
# this will trigger the action 'pages build & deployment' to host the recent build
- name: Deploy to GitHub Pages
Expand Down

0 comments on commit 9257670

Please sign in to comment.