Skip to content

Commit

Permalink
Add option to upload to bintray (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilopmar authored Sep 24, 2020
1 parent 6c6cd42 commit 94cc4ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/bintray-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
release_version:
description: 'Release version (eg: 1.2.3)'
required: true
upload:
description: 'Whether to upload (eg: true/false)'
required: true
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -24,6 +27,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Upload to Bintray
if: github.event.inputs.upload == 'true'
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
run: ./gradlew bintrayUpload
- name: Publish to Bintray
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
Expand Down

0 comments on commit 94cc4ec

Please sign in to comment.