chore: 更新 Web 项目发布构建的 GitHub Action,移除不必要的输入参数,简化参数验证步骤,优化文档描述,增强环境变量支持,提升可读性和灵活性。

This commit is contained in:
Lyda
2025-08-20 17:38:17 +08:00
parent 6f61b95795
commit 59104cf204
6 changed files with 60 additions and 121 deletions

View File

@@ -72,9 +72,9 @@ jobs:
- name: 发布构建
id: release
uses: actions/xgj/release-web@main
with:
gitea-token: ${{ secrets.GITEA_TOKEN }}
app-env: ${{ github.ref == 'refs/heads/main' && 'production' || 'develop' }}
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
APP_ENV: ${{ github.ref == 'refs/heads/main' && 'production' || 'develop' }}
- name: 通知发布结果
run: |