feature: Java 21 support #156
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: Publish Snapshot | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- '[0-9].[0-9]' | |
jobs: | |
snapshot: | |
name: Deploy Snapshot | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.mv2/repository | |
key: om-${{hashFiles('**/pom.xml')}} | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 21 | |
distribution: 'zulu' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- run: mvn dependency:go-offline | |
- run: mvn clean process-test-classes verify | |
- name: codecov | |
run: | | |
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov | |
- name: deploy | |
working-directory: redis-om-spring | |
run: | | |
mvn --no-transfer-progress \ | |
-DskipTests\ | |
-Dgpg.passphrase='${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}' \ | |
deploy | |
env: | |
MAVEN_USERNAME: ${{secrets.OSSRH_USERNAME}} | |
MAVEN_PASSWORD: ${{secrets.OSSRH_TOKEN}} |