https://github.community/t/getting-release-details-from-within-an-actions-run/17552 Also fixed BINTRAY_KEY secret
25 lines
565 B
YAML
25 lines
565 B
YAML
name: Publish Artifacts
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
publish:
|
|
|
|
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: Publish Artifacts
|
|
run: ./gradlew api:bintrayUpload client:bintrayUpload -DlibraryVersion=${GITHUB_REF##*/}
|
|
env:
|
|
BINTRAY_USER : ${{ secrets.BINTRAY_USER }}
|
|
BINTRAY_KEY : ${{ secrets.BINTRAY_KEY }}
|