Bump gradle/actions from 4 to 5 #37
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
| name: 'release' | |
| on: [ push, pull_request ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: 'Checkout repository' | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: 'Validate gradlew' | |
| uses: gradle/actions/wrapper-validation@v5 | |
| - name: 'Setup Java' | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| check-latest: true | |
| cache: 'gradle' | |
| - name: 'Change permissions' | |
| run: chmod +x ./gradlew | |
| - name: 'Build plugin' | |
| run: ./gradlew --console plain --no-daemon --full-stacktrace check build | |
| - name: 'Release plugin' | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| body: 'automated release at commit ${{ github.sha }}' | |
| files: 'build/dist/*.jar' |