Browse Source

[gh actions][s]: setup deploy to datahub action.

master
anuveyatsu 4 years ago
parent
commit
4c98133a49
1 changed files with 16 additions and 1 deletions
  1. +16
    -1
      .github/workflows/actions.yml

+ 16
- 1
.github/workflows/actions.yml View File

@ -3,7 +3,7 @@ on:
- cron: '0 */6 * * *'
jobs:
build:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
@ -24,3 +24,18 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.gh }}
deploy:
needs: update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '8.x'
- run: npm install -g data-cli
- run: data --version
- run: data push
env:
id: ${{secrets.dhid}}
username: ${{secrets.dhusername}}
token: ${{secrets.dhtoken}}

Loading…
Cancel
Save