Update .forgejo/workflows/release.yml
This commit is contained in:
parent
ed76ddb28d
commit
cd7aa81a8a
1 changed files with 3 additions and 1 deletions
|
@ -228,10 +228,12 @@ jobs:
|
|||
echo "Created release ID: $RELEASE_ID"
|
||||
|
||||
# Upload artifact
|
||||
JAR_FILE=$(ls target/resilient*.jar | head -n 1)
|
||||
echo "Attaching file : $JAR_FILE"
|
||||
curl -X POST "$API/repos/$REPO/releases/$RELEASE_ID/assets?name=resilient.jar" \
|
||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
-H "Content-Type: application/java-archive" \
|
||||
--data-binary @"target/resilient*.jar"
|
||||
--data-binary @"$JAR_FILE"
|
||||
|
||||
|
||||
# ##################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue