Merge pull request #729 from splendo/feature/timer-example #614
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 | |
on: push | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.jvmargs=\"-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false\" -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dkotlin.daemon.jvm.options=-Xmx8G,-XX:MaxMetaspaceSize=512m,-Dorg.gradle.daemon=false,-Dkotlin.incremental=false" | |
JAVA_OPTS: "-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | |
SIGNING_SECRET_KEY_RING_FILE: "/Users/runner/work/kaluga/kaluga/convention-plugins/keys/secret-keys.gpg" | |
concurrency: publish-${{ github.ref_name }} | |
jobs: | |
publish: | |
env: | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
runs-on: macos-13 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# remove VM settings as defined for using the IDE | |
- run: sed -i '' -e '/org.gradle.jvmargs/d' gradle.properties; cat gradle.properties | |
# TODO: use setup_tools_macos | |
- name : set up JDK 17 | |
uses : actions/setup-java@v3 | |
with : | |
distribution : 'temurin' | |
java-version : 17 | |
- name: Konan cache | |
uses: actions/cache@v3 | |
id: konan-cache | |
with: | |
path: ~/.konan/* | |
key: konan | |
- name: "Publish SNAPSHOT" | |
if: ${{ github.ref_name != 'master' }} | |
run: ./gradlew publishAllPublicationsToSnapshotsRepository --stacktrace | |
- name: "Publish Maven Central" | |
if: ${{ github.ref_name == 'master' }} | |
env: | |
MAVEN_CENTRAL_RELEASE: "true" | |
run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace |