更新 .gitea/workflows/demo.yaml

发布生产
This commit is contained in:
xiehaijun 2025-07-28 16:07:18 +00:00
parent c4470b41eb
commit 8dd87b1036
1 changed files with 5 additions and 5 deletions

View File

@ -221,9 +221,9 @@ jobs:
needs: upload
runs-on: ubuntu-latest
env: # 设置job下全steps的环境变量
GITEA_API_URL: https://gitea.example.com/api/v1
GITEA_USER: youruser
GITEA_REPO: yourrepo
GITEA_API_URL: https://git.ewancle.com/api/v1
GITEA_USER1: xiehaijun
GITEA_REPO1: study-plan
ARTIFACT_FILE: dist/release.zip
steps:
- name: Checkout
@ -336,8 +336,8 @@ jobs:
- name: Create Gitea Release
id: create_release
run: |
response=$(curl -s -X POST "${GITEA_API_URL}/repos/${GITEA_USER}/${GITEA_REPO}/releases" \
-H "Authorization: token ${{ secrets.GITEA_PAT }}" \
response=$(curl -s -X POST "${GITEA_API_URL}/repos/${GITEA_USER1}/${GITEA_REPO1}/releases" \
-H "Authorization: token ${{ secrets.MY_APP_TOKEN }}" \
-H "Content-Type: application/json" \
-d @- <<EOF
{