-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.28 KB
/
deploy.yml
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
name: Deploy
on:
push:
tags:
- '*'
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
jobs:
publish-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: CALL gradlew.bat --no-daemon
shell: cmd
- run: CALL gradlew.bat --no-daemon assemble check publishMingwX64PublicationToMavenRepository
shell: cmd
publish-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: ./gradlew
- run: ./gradlew assemble check publish -x publishKotlinMultiplatformPublicationToMavenRepository
publish-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ./gradlew --no-daemon
- run: ./gradlew --no-daemon assemble check lint testDebugUnitTest publishKotlinMultiplatformPublicationToMavenRepository publishLinuxX64PublicationToMavenRepository
publish-finalize:
needs: [publish-windows, publish-mac, publish-linux]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ./gradlew releaseMavenCentral