From 9257670116eaeade9ef748f0f22b15ba24422476 Mon Sep 17 00:00:00 2001 From: Marius Unger Date: Wed, 20 Dec 2023 11:32:10 +0100 Subject: [PATCH] CFWEB-91 - Update dependencies * only deploy to github ppages when PR has been merged to main branch --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 028bbb1..0ae179d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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