Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Send library version via command line
Browse files Browse the repository at this point in the history
TheoKanning committed Oct 5, 2020
1 parent 3fdc96d commit 4141fb9
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ on:
types: [published]

jobs:
build:
publish:

runs-on: ubuntu-latest

@@ -18,8 +18,7 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish Artifacts
run: ./gradlew api:bintrayUpload client:bintrayUpload
run: ./gradlew api:bintrayUpload client:bintrayUpload -DlibraryVersion=$GITHUB_REF
env:
RELEASE_VERSION : ${{ github.github_ref }}
BINTRAY_USER : ${{ secrets.BINTRAY_USER }}
BINTRARY_KEY : ${{ secrets.BINTRAY_KEY }}
2 changes: 1 addition & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ dependencies {
}

ext {
libraryVersion = System.getenv("RELEASE_VERSION")
libraryVersion = System.getProperty("libraryVersion")
}

version = libraryVersion
2 changes: 1 addition & 1 deletion client/build.gradle
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ dependencies {
}

ext {
libraryVersion = System.getenv("RELEASE_VERSION")
libraryVersion = System.getProperty("libraryVersion")
}

version = libraryVersion

0 comments on commit 4141fb9

Please sign in to comment.