refactor config file #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |