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: