fix: Rename GITEA_TOKEN to RELEASE_TOKEN in CI workflow
Some checks failed
Build Companion Agent / build (push) Failing after 13s
Test Asgard Runner / test (push) Successful in 3s

Gitea reserves GITEA_* and GITHUB_* prefixes for secrets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell
2026-02-21 13:55:01 -05:00
parent e0f9438dfa
commit 627a2085d4

View File

@@ -43,7 +43,7 @@ jobs:
- name: Create Release
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
VERSION=${{ steps.version.outputs.VERSION }}
REPO="vantzs/corrosion-admin-panel"
@@ -51,28 +51,28 @@ jobs:
# Create release
RELEASE_ID=$(curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token ${RELEASE_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${VERSION}\", \"name\": \"Companion Agent ${VERSION}\", \"body\": \"Companion Agent release ${VERSION}\", \"draft\": false, \"prerelease\": false}" \
"${API_URL}/repos/${REPO}/releases" | jq -r '.id')
# Upload Linux binary
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token ${RELEASE_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @companion-agent/bin/corrosion-companion-linux-amd64 \
"${API_URL}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=corrosion-companion-linux-amd64"
# Upload Windows binary
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token ${RELEASE_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @companion-agent/bin/corrosion-companion-windows-amd64.exe \
"${API_URL}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=corrosion-companion-windows-amd64.exe"
# Upload checksums
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token ${RELEASE_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @companion-agent/bin/checksums.txt \
"${API_URL}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=checksums.txt"