更新 .gitea/workflows/demo.yaml

发布生产
This commit is contained in:
xiehaijun 2025-07-28 16:23:30 +00:00
parent 5df98fb942
commit df52c817a8
1 changed files with 6 additions and 6 deletions

View File

@ -337,17 +337,17 @@ jobs:
id: create_release
run: |
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
{
-H "Authorization: token ${{ secrets.MY_APP_TOKEN }}" \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"tag_name": "${{ env.TAG_NAME }}",
"name": "Release ${{ env.TAG_NAME }}",
"body": "This release was created automatically by GitHub Actions.",
"draft": false,
"prerelease": false
}
EOF
}
EOF
)
echo "$response" | tee gitea-release-response.json