Skip to content

Commit 034f2f6

Browse files
committed
Add release script.
1 parent 4a7fa4a commit 034f2f6

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ bin
1212

1313
# Ignore some generated files
1414
silabs-pti/debug-message-type-gen.h
15+
16+
release/

make-release

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
TAG=release-`cat silabs-pti/VERSION`
4+
5+
echo "Preparing release with tag $TAG..."
6+
git tag $TAG
7+
if [ $? != 0 ]; then
8+
echo "This release already exists. You can not create another one. Aborting..."
9+
exit
10+
fi
11+
12+
echo "Clean everything..."
13+
mkdir -p release
14+
rm -f release/*
15+
./gradlew clean
16+
17+
echo "Build libraries..."
18+
./gradlew all
19+
20+
echo "Copy libraries to release/ folder..."
21+
cp silabs-pti/build/libs/* release/
22+
23+
echo "Use gh to create a release."
24+
gh release create $TAG --generate-notes release/*

silabs-pti/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.2
1+
1.11.3

0 commit comments

Comments
 (0)