Skip to content

Merge pull request #212 from tailrocks/renovate/spring-boot #209

Merge pull request #212 from tailrocks/renovate/spring-boot

Merge pull request #212 from tailrocks/renovate/spring-boot #209

Workflow file for this run

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- name: Spotless Check
run: ./gradlew spotlessCheck
- name: Test
run: ./gradlew test --rerun-tasks
- name: Build
run: ./gradlew generatePomFileForMavenJavaPublication build
publish:
runs-on: ubuntu-latest
environment: Sonatype
needs: build
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up OpenJDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- name: Publish to Sonatype
run: ./publish-sonatype.sh