Skip to content

feat(v2.3.x): support v2.3.x (#13) #45

feat(v2.3.x): support v2.3.x (#13)

feat(v2.3.x): support v2.3.x (#13) #45

Workflow file for this run

name: Deploy docs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Build docs
run: npm install && npm run docs:build
- name: Install UploadCDN Client
run: wget https://github.com/gotomicro/uploadcdn/releases/download/v0.1.0/uploadcdn-client.tar.gz && tar xvf uploadcdn-client.tar.gz && chmod 755 uploadcdn-client
- name: Upload docs
run: export EGO_DEBUG=true && ./uploadcdn-client -id=${{ secrets.UPLOAD_CDN_CLIENT_ID }} -addr=http://upload.gocn.vip -secret=${{ secrets.UPLOAD_CDN_CLIENT_SECRET }} -dir=./docs/.vuepress/dist