Fixing release job
This commit is contained in:
parent
12e6a6f94b
commit
033febece6
1 changed files with 2 additions and 1 deletions
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -198,7 +198,8 @@ jobs:
|
||||||
filename=$(basename "$file")
|
filename=$(basename "$file")
|
||||||
echo "Uploading asset ${filename} to Forgejo release ${RELEASE_ID}..."
|
echo "Uploading asset ${filename} to Forgejo release ${RELEASE_ID}..."
|
||||||
curl -sS --fail-with-body -X POST \
|
curl -sS --fail-with-body -X POST \
|
||||||
"https://git.asarius.site/api/v1/repos/rukira/wow-backup/releases/${RELEASE_ID}/assets?name=${filename}" \
|
"https://git.asarius.site/api/v1/repos/rukira/wow-backup/releases/${RELEASE_ID}/assets" \
|
||||||
|
--url-query "name=${filename}" \
|
||||||
-H "Authorization: token ${FORGEJO_PAT}" \
|
-H "Authorization: token ${FORGEJO_PAT}" \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-F "attachment=@${file}"
|
-F "attachment=@${file}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue