From 4c98133a49b5f26bfb0dc62a2e0ce8a31e36933c Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Mon, 23 Mar 2020 12:23:18 +0600 Subject: [PATCH] [gh actions][s]: setup deploy to datahub action. --- .github/workflows/actions.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 8a5e79bf..329904e1 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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}}