fix: use RELEASE_TOKEN secret (GITEA_ prefix reserved), add .runner to gitignore
Some checks failed
Build MIPS Binary / build (push) Failing after 45s
Some checks failed
Build MIPS Binary / build (push) Failing after 45s
This commit is contained in:
@@ -73,7 +73,7 @@ jobs:
|
||||
|
||||
- name: Create Release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
run: |
|
||||
TAG="${{ steps.tag.outputs.release_tag }}"
|
||||
REPO="admin/vibetorrent"
|
||||
@@ -81,7 +81,7 @@ jobs:
|
||||
|
||||
# Create release
|
||||
RELEASE_RESPONSE=$(curl -s -X POST "${API_URL}/repos/${REPO}/releases" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Authorization: token ${RELEASE_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"${TAG}\",
|
||||
@@ -102,7 +102,7 @@ jobs:
|
||||
|
||||
# Upload binary as release asset
|
||||
curl -s -X POST "${API_URL}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=vibetorrent-mips" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Authorization: token ${RELEASE_TOKEN}" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary @target/mips-unknown-linux-musl/release/vibetorrent-mips
|
||||
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ result.xml
|
||||
**/node_modules
|
||||
frontend/dist
|
||||
backend.log
|
||||
.runner
|
||||
|
||||
Reference in New Issue
Block a user