This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
Update plugin org.springframework.boot to v3 #332
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: build | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/build.yaml | |
- src/** | |
- gradle/** | |
- build.gradle | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- master | |
paths: | |
- .github/workflows/build.yaml | |
- src/** | |
- gradle/** | |
- build.gradle | |
jobs: | |
gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: '11' | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- run: ./gradlew --no-daemon build | |
- if: github.ref_type == 'tag' | |
run: gh release upload '${{ github.ref_name }}' build/libs/httpstub.jar --clobber | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |