feat: implement basic version detection #192
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 (jdk 17) | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Temurin 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Cache/Uncache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/loom-cache | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build | |
run: ./gradlew build --stacktrace --warning-mode fail | |
- name: Upload build artifacts | |
continue-on-error: true | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Artifacts | |
path: build/libs/ | |
- name: Publish to the snapshots maven repo | |
run: ./gradlew publishAllPublicationsToUkuSnapshotsRepository | |
env: | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |