ci: fix secret name to GITEATOKEN
All checks were successful
Release / build (push) Successful in 39s
All checks were successful
Release / build (push) Successful in 39s
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
||||
|
||||
- name: Create Release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEATOKEN: ${{ secrets.GITEATOKEN }}
|
||||
run: |
|
||||
VERSION="${{ github.ref_name }}"
|
||||
VER="${VERSION#v}"
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
|
||||
# Create release
|
||||
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" \
|
||||
-d "{\"tag_name\": \"${VERSION}\", \"name\": \"${VERSION}\"}" | jq -r .id)
|
||||
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
|
||||
# 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" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Authorization: token ${GITEATOKEN}" \
|
||||
-F "attachment=@snitch_${VER}_linux_amd64.tar.gz"
|
||||
|
||||
echo "Release ${VERSION} complete!"
|
||||
|
||||
Reference in New Issue
Block a user