📝 更新 GitHub Actions 工作流以支持推送和拉取请求

This commit is contained in:
远野千束 2025-03-10 23:38:42 +08:00
parent f39f5cc1be
commit a0f2b52e59

View File

@ -1,9 +1,6 @@
name: Deploy VitePress site to Liteyuki PaaS
on:
push:
branches: [main]
workflow_dispatch:
on: ["push", "pull_request"]
permissions:
contents: write
@ -28,7 +25,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
python-version: "3.11"
- name: Setup API markdown
run: |-
@ -52,7 +49,6 @@ jobs:
run: |-
pnpm run docs:build
- name: "发布"
run: |
npx -p "@getmeli/cli" meli upload docs/.vitepress/dist \