diff --git a/.gitea/workflows/build-companion.yml b/.gitea/workflows/build-companion.yml index 9d8921c..b9657ee 100644 --- a/.gitea/workflows/build-companion.yml +++ b/.gitea/workflows/build-companion.yml @@ -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"