Update actions/setup-java action to v3 #185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Gradle | |
on: | |
push: | |
branches: | |
- master | |
- refs/tags/* | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
- name: Build | |
run: ./gradlew check | |
- name: Release | |
env: | |
BINTRAY_USER: jenkins-reform-hmcts | |
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | |
RELEASE_VERSION: ${{ github.ref }} | |
run: ./gradlew bintrayUpload --info | |
if: startsWith(github.ref, 'refs/tags') |