mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Build and deploy gatsby
This commit is contained in:
parent
01a2063f70
commit
f556566d46
28
.github/workflows/build_and_deploy.yml
vendored
28
.github/workflows/build_and_deploy.yml
vendored
|
@ -6,10 +6,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Get changed files
|
- name: Get changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v35
|
uses: tj-actions/changed-files@v35.4.4
|
||||||
|
|
||||||
- name: Check changed files
|
- name: Check changed files
|
||||||
run: |
|
run: |
|
||||||
|
@ -30,16 +32,26 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.1
|
uses: actions/checkout@v2.3.1
|
||||||
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
|
with:
|
||||||
- name: Build
|
submodules: recursive
|
||||||
run: |
|
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
|
||||||
./gradlew run
|
- name: Run install
|
||||||
|
uses: borales/actions-yarn@v4
|
||||||
|
with:
|
||||||
|
dir: 'website'
|
||||||
|
cmd: install # will run `yarn install` command
|
||||||
|
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
|
||||||
|
- name: Test the app
|
||||||
|
uses: borales/actions-yarn@v4
|
||||||
|
with:
|
||||||
|
dir: 'website'
|
||||||
|
cmd: run build # will run `yarn test` command
|
||||||
if: ${{ github.event_name != 'pull_request' && 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: website/public
|
||||||
if: ${{ github.event_name != 'pull_request' && 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