build: change the version back again #14
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: main | |
on: [pull_request, push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [ 21 ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: setup jdk ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'microsoft' | |
- name: setup gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: execute gradle build | |
run: ./gradlew build | |
- name: capture build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libs | |
path: build/libs/ | |
retention-days: 5 | |
overwrite: true | |
release-please: | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
config-file: .github/config/release-please.json | |
manifest-file: .github/config/.release-please-manifest.json | |
- name: download release artifacts | |
if: ${{ steps.release.outputs.release_created }} | |
uses: actions/download-artifact@v4 | |
with: | |
name: libs | |
- name: upload release artifacts | |
if: ${{ steps.release.outputs.release_created }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload ${{ steps.release.outputs.tag_name }} build/libs/*.jar |