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
|
||||
on: [push]
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -22,14 +22,14 @@ jobs:
|
|||
id: extract_branch
|
||||
- name: Checkout
|
||||
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
|
||||
run: |
|
||||
./gradlew run
|
||||
if: steps.extract_branch.outputs.branch == 'master'
|
||||
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
|
||||
- name: Deploy
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
||||
with:
|
||||
branch: gh-pages
|
||||
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