Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: LC 文档重构 #1

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
Loading