Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4141fb9

Browse filesBrowse files
committed
Send library version via command line
1 parent 3fdc96d commit 4141fb9
Copy full SHA for 4141fb9

File tree

Expand file treeCollapse file tree

3 files changed

+4
-5
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-5
lines changed

‎.github/workflows/publish.yml

Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
8+
publish:
99

1010
runs-on: ubuntu-latest
1111

@@ -18,8 +18,7 @@ jobs:
1818
- name: Grant execute permission for gradlew
1919
run: chmod +x gradlew
2020
- name: Publish Artifacts
21-
run: ./gradlew api:bintrayUpload client:bintrayUpload
21+
run: ./gradlew api:bintrayUpload client:bintrayUpload -DlibraryVersion=$GITHUB_REF
2222
env:
23-
RELEASE_VERSION : ${{ github.github_ref }}
2423
BINTRAY_USER : ${{ secrets.BINTRAY_USER }}
2524
BINTRARY_KEY : ${{ secrets.BINTRAY_KEY }}

‎api/build.gradle

Copy file name to clipboardExpand all lines: api/build.gradle
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies {
88
}
99

1010
ext {
11-
libraryVersion = System.getenv("RELEASE_VERSION")
11+
libraryVersion = System.getProperty("libraryVersion")
1212
}
1313

1414
version = libraryVersion

‎client/build.gradle

Copy file name to clipboardExpand all lines: client/build.gradle
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies {
1010
}
1111

1212
ext {
13-
libraryVersion = System.getenv("RELEASE_VERSION")
13+
libraryVersion = System.getProperty("libraryVersion")
1414
}
1515

1616
version = libraryVersion

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.