Running Github Actions every time (not only on master)
This commit is contained in:
parent
b0d12ed9b0
commit
ad50e30598
6
.github/workflows/build-and-deploy.yml
vendored
6
.github/workflows/build-and-deploy.yml
vendored
|
@ -1,9 +1,7 @@
|
||||||
name: Optimize map and deploy
|
name: Optimize map and deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
- push
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -34,6 +32,7 @@ jobs:
|
||||||
run: mv dist/* .
|
run: mv dist/* .
|
||||||
|
|
||||||
- name: Bash
|
- name: Bash
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
ls -al
|
ls -al
|
||||||
git config --global user.email "d.negrier@thecodingmachine.com"
|
git config --global user.email "d.negrier@thecodingmachine.com"
|
||||||
|
@ -43,6 +42,7 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
BRANCH: gh-pages # The branch the action should deploy to.
|
BRANCH: gh-pages # The branch the action should deploy to.
|
||||||
|
|
Loading…
Reference in a new issue