ci: fix secret name to GITEATOKEN
All checks were successful
Release / build (push) Successful in 39s

This commit is contained in:
2026-02-24 16:57:04 +00:00
parent 928ffa8934
commit b10f442635

View File

@@ -22,7 +22,7 @@ jobs:
- name: Create Release - name: Create Release
env: env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEATOKEN: ${{ secrets.GITEATOKEN }}
run: | run: |
VERSION="${{ github.ref_name }}" VERSION="${{ github.ref_name }}"
VER="${VERSION#v}" VER="${VERSION#v}"
@@ -32,7 +32,7 @@ jobs:
# Create release # Create release
RELEASE_ID=$(curl -s -X POST "https://gitea.bitua.io/api/v1/repos/bitua/snitch/releases" \ RELEASE_ID=$(curl -s -X POST "https://gitea.bitua.io/api/v1/repos/bitua/snitch/releases" \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEATOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"tag_name\": \"${VERSION}\", \"name\": \"${VERSION}\"}" | jq -r .id) -d "{\"tag_name\": \"${VERSION}\", \"name\": \"${VERSION}\"}" | jq -r .id)
@@ -45,7 +45,7 @@ jobs:
# Upload asset # Upload asset
curl -s -X POST "https://gitea.bitua.io/api/v1/repos/bitua/snitch/releases/${RELEASE_ID}/assets?name=snitch_${VER}_linux_amd64.tar.gz" \ curl -s -X POST "https://gitea.bitua.io/api/v1/repos/bitua/snitch/releases/${RELEASE_ID}/assets?name=snitch_${VER}_linux_amd64.tar.gz" \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEATOKEN}" \
-F "attachment=@snitch_${VER}_linux_amd64.tar.gz" -F "attachment=@snitch_${VER}_linux_amd64.tar.gz"
echo "Release ${VERSION} complete!" echo "Release ${VERSION} complete!"