-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor GitHub Actions workflow for LeanCloud deployment
- Loading branch information
1 parent
dc0afa5
commit 1951035
Showing
2 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
name: Push docs to leancloud | ||
# # 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/**" | ||
# on: | ||
# # Runs on pushes targeting the default branch | ||
# push: | ||
# paths: | ||
# - "docs/**" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# # Allows you to run this workflow manually from the Actions tab | ||
# workflow_dispatch: | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
# # 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/setup-lean-cli@v1.0.0 | ||
- 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 | ||
# jobs: | ||
# # Build job | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup LeanCloud Cli | ||
# uses: manyuanrong/setup-lean-cli@v1.0.0 | ||
# - 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 |
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