Skip to content

Commit

Permalink
[gh actions][s]: setup deploy to datahub action.
Browse files Browse the repository at this point in the history
  • Loading branch information
anuveyatsu committed Mar 23, 2020
1 parent 3149b95 commit 4c98133
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
- cron: '0 */6 * * *'

jobs:
build:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand All @@ -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}}

0 comments on commit 4c98133

Please sign in to comment.