-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (36 loc) · 1.22 KB
/
maven-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
name: Publish to Maven
on:
push:
branches:
- master
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Configure Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Configure Gradle
uses: gradle/gradle-build-action@v2
- name: Cache Konan
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Publish
env:
ORG_GRADLE_PROJECT_repositoryUsername: ${{ secrets.ORG_GRADLE_PROJECT_repositoryUsername }}
ORG_GRADLE_PROJECT_repositoryPassword: ${{ secrets.ORG_GRADLE_PROJECT_repositoryPassword }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingPassword }}
run: |
./gradlew assemble
./gradlew publishAllPublicationsToMavenRepository