|
|
@ -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}} |