From a893f80b757583d6d4caebff7abccaaf0f24d1d9 Mon Sep 17 00:00:00 2001 From: Theo Kanning Date: Mon, 5 Oct 2020 19:00:05 -0500 Subject: [PATCH] Use release tag without prefixes https://github.community/t/getting-release-details-from-within-an-actions-run/17552 Also fixed BINTRAY_KEY secret --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f467e02f..f6f764dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Publish Artifacts - run: ./gradlew api:bintrayUpload client:bintrayUpload -DlibraryVersion=$GITHUB_REF + run: ./gradlew api:bintrayUpload client:bintrayUpload -DlibraryVersion=${GITHUB_REF##*/} env: BINTRAY_USER : ${{ secrets.BINTRAY_USER }} - BINTRARY_KEY : ${{ secrets.BINTRAY_KEY }} + BINTRAY_KEY : ${{ secrets.BINTRAY_KEY }}