fix(ci): use GITHUB_* env vars for Gitea release workflow
Release / build (amd64, freebsd) (push) Successful in 59s
Release / build (amd64, linux) (push) Successful in 59s
Release / build (arm64, freebsd) (push) Successful in 57s
Release / build (arm64, linux) (push) Successful in 58s
Release / build (riscv64, freebsd) (push) Canceled after 0s
Release / build (riscv64, linux) (push) Canceled after 0s
Release / release (push) Canceled after 0s
Release / build (loong64, linux) (push) Canceled after 51s

This commit is contained in:
2026-07-26 21:24:48 +02:00
parent 5048968cdf
commit c3418b3c3b
+5 -5
View File
@@ -126,10 +126,10 @@ jobs:
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-X POST \ -X POST \
"${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases" \ "${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/releases" \
-d "{ -d "{
\"tag_name\": \"${GITEA_REF_NAME}\", \"tag_name\": \"${GITHUB_REF_NAME}\",
\"name\": \"${GITEA_REF_NAME}\", \"name\": \"${GITHUB_REF_NAME}\",
\"body\": ${BODY}, \"body\": ${BODY},
\"draft\": false, \"draft\": false,
\"prerelease\": false \"prerelease\": false
@@ -166,7 +166,7 @@ jobs:
-H "Content-Type: application/octet-stream" \ -H "Content-Type: application/octet-stream" \
-X POST \ -X POST \
--data-binary "@${binary}" \ --data-binary "@${binary}" \
"${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${fname}") "${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${fname}")
echo " HTTP ${http_code}" echo " HTTP ${http_code}"
if [ "$http_code" != "201" ]; then if [ "$http_code" != "201" ]; then
echo "Failed to upload ${fname}" echo "Failed to upload ${fname}"
@@ -175,5 +175,5 @@ jobs:
done done
echo echo
echo "Release ${GITEA_REF_NAME} is live with the following assets:" echo "Release ${GITHUB_REF_NAME} is live with the following assets:"
ls -lh dist/nuntius-*/ ls -lh dist/nuntius-*/