Skip to content

Commit 4963c71

Browse files
committed
sample app improvements and readme changes
1 parent 8299896 commit 4963c71

9 files changed

Lines changed: 646 additions & 584 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,5 @@ jobs:
3131
- name: Make Gradle wrapper executable
3232
run: chmod +x ./gradlew
3333

34-
- name: Build
35-
run: ./gradlew build --stacktrace
36-
37-
- name: Run all tests
38-
run: ./gradlew allTests --stacktrace
34+
- name: Build and test
35+
run: ./gradlew build allTests --stacktrace

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ jobs:
3232
- name: Build and test
3333
run: ./gradlew build allTests --stacktrace
3434

35+
- name: Verify release version
36+
if: github.event_name == 'release'
37+
run: |
38+
TAG_VERSION="${GITHUB_REF_NAME#v}"
39+
PROJECT_VERSION=$(./gradlew properties -q | awk '/^version:/ { print $2 }')
40+
41+
echo "Release tag version: $TAG_VERSION"
42+
echo "Gradle project version: $PROJECT_VERSION"
43+
44+
if [ "$TAG_VERSION" != "$PROJECT_VERSION" ]; then
45+
echo "Release tag and Gradle version do not match."
46+
exit 1
47+
fi
48+
3549
- name: Publish to Maven Central
3650
run: ./gradlew publishToMavenCentral --stacktrace
3751
env:

0 commit comments

Comments
 (0)