Skip to content

release: v0.7.0

release: v0.7.0 #222

Workflow file for this run

name: Java CI/CD
on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master
jobs:
test:
name: Java ${{ matrix.java }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
java:
- 17
- 21
os:
- ubuntu
- windows
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java }}
java-package: jdk
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew :framework:build :annotation-processor:build
- name: Deploy to Maven Central
if: matrix.os == 'ubuntu' && matrix.java == 17 && startsWith(github.ref, 'refs/tags/v')
run: |
echo '${{ secrets.SIGNING_KEY }}' | base64 -d > /tmp/signing_key.gpg
./gradlew \
'-PsonatypeUsername=${{ secrets.NEXUS_USERNAME }}' \
'-PsonatypePassword=${{ secrets.NEXUS_PASSWORD }}' \
'-Psigning.keyId=${{ secrets.SIGNING_KEY_ID }}' \
'-Psigning.password=${{ secrets.SIGNING_PASSWORD }}' \
'-Psigning.secretKeyRingFile=/tmp/signing_key.gpg' \
publishToSonatype closeAndReleaseSonatypeStagingRepository