Skip to content

chore: update github action #48

chore: update github action

chore: update github action #48

Workflow file for this run

# main.yml
name: update docs
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: use Node.js 12.16.2
uses: actions/setup-node@master
with:
node-version: 12.16.2
- name: update docs
run: |
npm install
cd docs
npm install
npm run build
env:
CI: true
- name: deploy docs
uses: easingthemes/ssh-deploy@v2.1.5
env:
SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
ARGS: '-avz --delete --exclude *.js.map'
SOURCE: 'docs/.docz/public/'
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.DOCS_TARGET }}