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

feat: 改用 netlify 做预览环境 #3

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
14 changes: 0 additions & 14 deletions .github/workflows/preview-deletion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,12 @@ on:
pull_request:
types: [closed]

env:
REGION: cn-n1 # set this to your LeanCloud region, e.g. cn-n1
APP_ID: j1sU6A4GIEiCzwDu5l9Klk03-9Nh9j0Va # set this to your App ID on LeanCloud
GROUP: web # set this to your group, e.g. web

jobs:
delete-preview-environment:
runs-on: ubuntu-latest
permissions:
deployments: write
steps:
- 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: Delete Preview Environment
run: |
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
29 changes: 0 additions & 29 deletions .github/workflows/preview-deployment.yml

This file was deleted.

Loading