add file upload third
Some checks failed
Release Workflow / set-release-target (push) Successful in 1s
Release Workflow / build (db, amd64, linux) (push) Has been cancelled
Release Workflow / build (metadata, amd64, linux) (push) Has been cancelled
Release Workflow / prerelease (push) Has been cancelled

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-12-15 13:17:17 +01:00
commit f60fb4b65d
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -95,6 +95,13 @@ jobs:
"prerelease": true
}
EOF
- name: Upload asset
run: |
RELEASE_ID=$(curl -s \
-H "Authorization: token $TOKEN" \
https://git.g3e.fr/api/v1/repos/${{ github.repository }}/releases/tags/$TAG \
| jq -r .id)
echo ${RELEASE_ID}
ls dist | while read tmp
do
FILE=$(ls "./dist/${tmp}")
@ -103,12 +110,5 @@ jobs:
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @dist/${tmp}/${FILE} \
"https://forgejo.example/api/v1/repos/${{ github.repository }}/releases/$RELEASE_ID/assets?name=${FILE}"
"https://git.g3e.fr/api/v1/repos/${{ github.repository }}/releases/$RELEASE_ID/assets?name=${FILE}"
done
- name: Upload asset
run: |
RELEASE_ID=$(curl -s \
-H "Authorization: token $TOKEN" \
https://git.g3e.fr/api/v1/repos/${{ github.repository }}/releases/tags/$TAG \
| jq -r .id)
echo ${RELEASE_ID}