Skip to content

Commit a56cc4f

Browse files
committed
Fix the build artifact creation.
1 parent fb6d522 commit a56cc4f

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ jobs:
3232
uses: actions/upload-artifact@v4
3333
with:
3434
name: silabs-pti
35-
path: silabs-pti/build/libs/*.jar
36-
overwrite: true
37-
- name: Archive license file
38-
uses: actions/upload-artifact@v4
39-
with:
40-
name: silabs-pti
41-
path: LICENSE.txt
35+
path: |
36+
silabs-pti/build/libs/*.jar
37+
LICENSE.txt
4238
overwrite: true

make-release

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
VERSION=`cat silabs-pti/VERSION`
44
TAG=release-${VERSION}
55

6-
echo "Preparing release with tag $TAG..."
7-
git tag $TAG
8-
if [ $? != 0 ]; then
9-
echo "This release already exists. You can not create another one. Aborting..."
10-
exit
11-
fi
12-
136
echo "Clean files from previous release..."
147
mkdir -p release
158
rm -f release/*
@@ -21,6 +14,13 @@ echo "Add jar files without the version in their names..."
2114
cp release/silabs-pti-lib-${VERSION}.jar release/silabs-pti-lib.jar
2215
cp release/silabs-pti-${VERSION}.jar release/silabs-pti.jar
2316

17+
echo "Preparing release with tag $TAG..."
18+
git tag $TAG
19+
if [ $? != 0 ]; then
20+
echo "This release already exists. You can not create another one. Aborting..."
21+
exit
22+
fi
23+
2424
echo "Use gh to create a release."
2525
git push --tags upstream
2626
gh release create $TAG --generate-notes release/*

0 commit comments

Comments
 (0)