only deploy on webapp changes (#635)
* only deploy on webapp changes
* split ci and deploy flows
* test trigger
* Revert "test trigger"
This reverts commit 42baff0f5a
.
This commit is contained in:
parent
a16b724583
commit
83b5e5fe77
|
@ -1,4 +1,4 @@
|
||||||
name: skynet-webportal CI
|
name: Continous Integration
|
||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
@ -30,12 +30,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GATSBY_API_URL: "https://siasky.net"
|
GATSBY_API_URL: "https://siasky.net"
|
||||||
|
|
||||||
- name: "Deploy to Skynet"
|
|
||||||
uses: kwypchlo/deploy-to-skynet-action@main
|
|
||||||
with:
|
|
||||||
upload-dir: packages/webapp/public
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Cypress run
|
- name: Cypress run
|
||||||
uses: cypress-io/github-action@v2
|
uses: cypress-io/github-action@v2
|
||||||
env:
|
env:
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Deploy webapp to Skynet
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "packages/webapp/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 14.x
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn
|
||||||
|
|
||||||
|
- name: "Build webapp"
|
||||||
|
run: yarn workspace webapp build
|
||||||
|
env:
|
||||||
|
GATSBY_API_URL: "https://siasky.net"
|
||||||
|
|
||||||
|
- name: "Deploy to Skynet"
|
||||||
|
uses: kwypchlo/deploy-to-skynet-action@main
|
||||||
|
with:
|
||||||
|
upload-dir: packages/webapp/public
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
Reference in New Issue