2 Commits

View File

@@ -21,14 +21,15 @@ jobs:
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
run: |
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
curl -X POST "$GITEA_API_URL/repos/<owner>/<repo>/releases" \
echo ${{ github.repository }} ${{ github.repository_owner }} ${{ github.event.repository.name }}
curl -X POST "$GITEA_API_URL/repos/bot/yukilog/releases" \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tag_name": "'"$TAG_NAME"'",
"target_commitish": "main",
"name": "'"$TAG_NAME"'",
"body": "'"${{ steps.changelog.outputs.changelog }}"'",
"body": "'"waiting..."'",
"draft": false,
"prerelease": false
}'