ci: Release Please file for gcp-lts-bom and dependencies modules (#2420) #1553
This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| name: ci | |
| jobs: | |
| units: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: [8, 11] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v1 | |
| with: | |
| java-version: ${{matrix.java}} | |
| - name: Get current date | |
| id: date | |
| run: echo "date=$(date +'%Y-%m-%d' --utc)" >> "$GITHUB_OUTPUT" | |
| - uses: actions/cache@v4 | |
| id: mvn-cache | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.date }} | |
| - run: java -version | |
| # The http connection settings avoid Maven's HTTP connection reset in GitHub Actions | |
| # https://github.com/actions/virtual-environments/issues/1499#issuecomment-689467080 | |
| - run: | | |
| ./mvnw -B -e -ntp install \ | |
| -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false \ | |
| -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
| - run: cd gradle-plugin && ./gradlew build publishToMavenLocal | |