Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
b3e7810b5e | |||
|
c4ac52c535 |
2 changed files with 4 additions and 3 deletions
|
@ -228,9 +228,10 @@ jobs:
|
||||||
echo "Created release ID: $RELEASE_ID"
|
echo "Created release ID: $RELEASE_ID"
|
||||||
|
|
||||||
# Upload artifact
|
# Upload artifact
|
||||||
JAR_FILE=$(ls target/resilient*.jar | head -n 1)
|
# NOTE: For safety, the artifact to upload is expected to be the EXACT $VERSION of this branch. If not, something is wrong.
|
||||||
|
JAR_FILE=$(ls target/resilient-$VERSION.jar | head -n 1)
|
||||||
echo "Attaching file : $JAR_FILE"
|
echo "Attaching file : $JAR_FILE"
|
||||||
curl -X POST "$API/repos/$REPO/releases/$RELEASE_ID/assets?name=resilient.jar" \
|
curl -X POST "$API/repos/$REPO/releases/$RELEASE_ID/assets?name=resilient-$VERSION.jar" \
|
||||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||||
-H "Content-Type: application/java-archive" \
|
-H "Content-Type: application/java-archive" \
|
||||||
--data-binary @"$JAR_FILE"
|
--data-binary @"$JAR_FILE"
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<groupId>com.oguerreiro.resilient</groupId>
|
<groupId>com.oguerreiro.resilient</groupId>
|
||||||
<artifactId>resilient</artifactId>
|
<artifactId>resilient</artifactId>
|
||||||
<version>1.0.7-SNAPSHOT</version>
|
<version>1.0.8-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Resilient</name>
|
<name>Resilient</name>
|
||||||
<description>Description for Resilient</description>
|
<description>Description for Resilient</description>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue