diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 8a5e79b..329904e 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}}