Add github action to publish artifacts after a release
This commit is contained in:
parent
618a097254
commit
4e070027c4
|
@ -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 }}
|
|
@ -8,7 +8,7 @@ dependencies {
|
|||
}
|
||||
|
||||
ext {
|
||||
libraryVersion = '0.2.0'
|
||||
libraryVersion = System.getenv("RELEASE_VERSION")
|
||||
}
|
||||
|
||||
version = libraryVersion
|
||||
|
|
|
@ -10,7 +10,7 @@ dependencies {
|
|||
}
|
||||
|
||||
ext {
|
||||
libraryVersion = '0.2.0'
|
||||
libraryVersion = System.getenv("RELEASE_VERSION")
|
||||
}
|
||||
|
||||
version = libraryVersion
|
||||
|
|
Loading…
Reference in New Issue