Skip to content

Commit

Permalink
refactor: LC 文档重构
Browse files Browse the repository at this point in the history
  • Loading branch information
huangliling committed Aug 28, 2024
1 parent bb72d5a commit 27f01a8
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 119 deletions.
6 changes: 0 additions & 6 deletions .ci/build-leancloud.sh

This file was deleted.

37 changes: 0 additions & 37 deletions .ci/default.conf

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ jobs:
run: |
sudo curl -L -o /bin/lean https://github.com/leancloud/lean-cli/releases/download/v1.2.3/lean-linux-x64
sudo chmod +x /bin/lean
- name: Delete
- name: Delete Preview Environment
run: |
lean login --region ${{ env.REGION }} --token ${{ secrets.ACCESS_TOKEN }}
lean login --region ${{ env.REGION }} --token ${{ secrets.LC_ACCESS_TOKEN }}
lean switch --region ${{ env.REGION }} --group ${{ env.GROUP }} ${{ env.APP_ID }}
lean preview delete
- uses: strumwolf/delete-deployment-environment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# .github/workflows/preview-env-deploy.yml

name: Deploy Preview Environment

on:
Expand All @@ -19,15 +17,13 @@ jobs:
url: ${{ env.PREVIEW_URL }}
steps:
- uses: actions/checkout@v3

- name: Install lean-cli
run: |
sudo curl -L -o /bin/lean https://github.com/leancloud/lean-cli/releases/download/v1.2.3/lean-linux-x64
sudo chmod +x /bin/lean
- name: Deploy
run: |
lean login --region ${{ env.REGION }} --token ${{ secrets.ACCESS_TOKEN }}
lean login --region ${{ env.REGION }} --token ${{ secrets.LC_ACCESS_TOKEN }}
lean switch --region ${{ env.REGION }} --group ${{ env.GROUP }} ${{ env.APP_ID }}
PREVIEW_URL=$(lean preview deploy)
echo "PREVIEW_URL=$PREVIEW_URL" >> $GITHUB_ENV
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@
on:
push:
branches: [master]
schedule:
- cron: '0 */2 * * *'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.CHECKOUT_TOKEN }}

- name: Deploy to LeanEngine
uses: enflo/[email protected]
with:
Expand Down
40 changes: 0 additions & 40 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
registry=https://registry.npm.taobao.org
registry=https://registry.npmmirror.com
disturl=https://npmmirror.com/mirrors/node
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

15 changes: 0 additions & 15 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion leanengine.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build: sh .ci/build-leancloud.sh
build: yarn build --out-dir build-leancloud
run: serve build-leancloud -c static.json -l ${LEANCLOUD_APP_PORT}

0 comments on commit 27f01a8

Please sign in to comment.