Merge pull request #347 from DomenicDev/bugfix/state-stored-orchestra… #334
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: CI with Gradle - Test, Build and Publish | |
# Trigger the workflow on push, | |
# but only for the main branch | |
on: | |
push: | |
branches: [ main ] | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xmx5g -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | |
GPG_PRIVATE_PASSWORD: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | |
jobs: | |
publish: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ 'macos-latest', 'ubuntu-latest', 'windows-latest' ] | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
check-latest: true | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Publish (macos, jvm, js) | |
if: matrix.os == 'macos-latest' | |
run: ./gradlew build publishAllPublicationToOssrhRepository --full-stacktrace | |
- name: Publish (linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: ./gradlew linuxX64Test publishLinuxX64PublicationToOssrhRepository --full-stacktrace | |
- name: Publish (windows) | |
if: matrix.os == 'windows-latest' | |
run: ./gradlew mingwX64Test publishMingwX64PublicationToOssrhRepository --full-stacktrace | |
- name: Stop Gradle daemons | |
run: ./gradlew --stop | |