name: Java CI on: release: types: [ published ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: submodules: recursive - name: Set up Java 11 uses: actions/setup-java@v1 with: java-version: 11 - name: Build with Gradle env: GITHUB_USERNAME: ${{ secrets.github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: ./gradlew clean build test publish