-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (42 loc) · 1.76 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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