add file upload third
Some checks failed
Some checks failed
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d5e7cae705
commit
f60fb4b65d
1 changed files with 9 additions and 9 deletions
|
|
@ -95,6 +95,13 @@ jobs:
|
||||||
"prerelease": true
|
"prerelease": true
|
||||||
}
|
}
|
||||||
EOF
|
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
|
ls dist | while read tmp
|
||||||
do
|
do
|
||||||
FILE=$(ls "./dist/${tmp}")
|
FILE=$(ls "./dist/${tmp}")
|
||||||
|
|
@ -103,12 +110,5 @@ jobs:
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary @dist/${tmp}/${FILE} \
|
--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
|
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}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue