Add github action to publish artifacts after a release

This commit is contained in:
Theo Kanning 2020-10-05 18:26:56 -05:00
parent 618a097254
commit 4e070027c4
3 changed files with 27 additions and 2 deletions

25
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Publish Artifacts
on:
release:
types: [published, created, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew app:bintrayUpload client:bintrayUpload
env:
RELEASE_VERSION : ${{ github.github_ref }}
BINTRAY_USER : ${{ secrets.BINTRAY_USER }}
BINTRARY_KEY : ${{ secrets.BINTRAY_KEY }}

View File

@ -8,7 +8,7 @@ dependencies {
}
ext {
libraryVersion = '0.2.0'
libraryVersion = System.getenv("RELEASE_VERSION")
}
version = libraryVersion

View File

@ -10,7 +10,7 @@ dependencies {
}
ext {
libraryVersion = '0.2.0'
libraryVersion = System.getenv("RELEASE_VERSION")
}
version = libraryVersion