mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Also run build github action on pull_request (#325)
This commit is contained in:
parent
49c41fd303
commit
17ec2dc9ad
8
.github/workflows/build_and_deploy.yml
vendored
8
.github/workflows/build_and_deploy.yml
vendored
|
@ -1,5 +1,5 @@
|
||||||
name: Build and Deploy
|
name: Build and Deploy
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -22,14 +22,14 @@ jobs:
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
if: steps.extract_branch.outputs.branch == 'master'
|
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
./gradlew run
|
./gradlew run
|
||||||
if: steps.extract_branch.outputs.branch == 'master'
|
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
uses: JamesIves/github-pages-deploy-action@4.1.4
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: output
|
folder: output
|
||||||
if: steps.extract_branch.outputs.branch == 'master'
|
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
|
Loading…
Reference in New Issue
Block a user