Skip to content

Commit

Permalink
BinTray publish in single step
Browse files Browse the repository at this point in the history
  • Loading branch information
valb3r committed Feb 2, 2020
1 parent 938b764 commit 53f12c3
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build

publish:
needs: build
runs-on: ubuntu-latest

if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Send artifacts to BinTray
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
run: ./gradlew bintrayUpload -PbintrayUser="$BINTRAY_USER" -PbintrayKey="$BINTRAY_API_KEY" -PdryRun=false
- name: Send artifacts to BinTray
if: startsWith(github.ref, 'refs/tags/v')
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
run: ./gradlew bintrayUpload -PbintrayUser="$BINTRAY_USER" -PbintrayKey="$BINTRAY_API_KEY" -PdryRun=false

0 comments on commit 53f12c3

Please sign in to comment.