From ad50e305986a0e2066e964ce82c5a5dde59bd1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sun, 11 Apr 2021 23:40:39 +0200 Subject: [PATCH] Running Github Actions every time (not only on master) --- .github/workflows/build-and-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 9c91b8b..4c7c5ea 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -1,9 +1,7 @@ name: Optimize map and deploy on: - push: - branches: - - master + - push jobs: @@ -34,6 +32,7 @@ jobs: run: mv dist/* . - name: Bash + if: github.ref == 'refs/heads/master' run: | ls -al git config --global user.email "d.negrier@thecodingmachine.com" @@ -43,6 +42,7 @@ jobs: - name: Deploy uses: JamesIves/github-pages-deploy-action@releases/v3 + if: github.ref == 'refs/heads/master' with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages # The branch the action should deploy to.