diff --git a/.github/workflows/bintray-publish.yml b/.github/workflows/bintray-publish.yml index ad6ce9d16..8fc8fcc6c 100644 --- a/.github/workflows/bintray-publish.yml +++ b/.github/workflows/bintray-publish.yml @@ -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 @@ -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 }}