From ef29a7e7d03f5d5c7b75733198ba8734fca83da0 Mon Sep 17 00:00:00 2001 From: ligi Date: Mon, 5 Jul 2021 01:16:00 +0200 Subject: [PATCH] Build in deploy step (#322) --- .github/workflows/build_and_deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index cf4b1c23..e2969e1d 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -20,6 +20,13 @@ jobs: shell: bash run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" id: extract_branch + - name: Checkout + uses: actions/checkout@v2.3.1 + if: steps.extract_branch.outputs.branch == 'master' + - name: Build + run: | + ./gradlew run + if: steps.extract_branch.outputs.branch == 'master' - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.4 with: