Skip to content

refactor config file #27

refactor config file

refactor config file #27

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Push docs to leancloud
on:
# Runs on pushes targeting the default branch
push:
paths:
- "docs/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup LeanCloud Cli
uses: manyuanrong/[email protected]
- run: |
cd ./docs
lean login --region cn-n1 --username ${{secrets.LEANCLOUD_USER}} --password ${{secrets.LEANCLOUD_PASS}}
lean switch --region cn-n1 --group web ${{secrets.LEANCLOUD_APP_ID}}
lean deploy