Skip to content

Commit

Permalink
Refactor GitHub Actions workflow for LeanCloud deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGong2013 committed May 21, 2024
1 parent dc0afa5 commit 1951035
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/leancloud-pages.yml
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
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ brews:
homepage: https://apkgo.com.cn
description: Upload apk to anywhere
license: "Apache-2.0"
tap:
repository:
owner: KevinGong2013
name: homebrew-tap
branch: main
Expand Down

0 comments on commit 1951035

Please sign in to comment.