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
|
- 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!"
|
||||||
|
|||||||
Reference in New Issue
Block a user