-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (40 loc) · 1.37 KB
/
Publishing.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
42
name: Publishing
on:
push:
tags:
- 'v*'
jobs:
build-on-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- run: chmod +x gradlew
- run: ./gradlew clean --scan
- run: ./gradlew checkMavenCentralPublication --scan
env:
PUBLICATION_CREDENTIALS: ${{ secrets.PUBLICATION_CREDENTIALS }}
- run: ./gradlew build --scan "-Dkotlin.daemon.jvm.options=-Xmx3g"
- run: ./gradlew publishMingwX64PublicationToMavenRepository --scan
env:
PUBLICATION_CREDENTIALS: ${{ secrets.PUBLICATION_CREDENTIALS }}
build-on-macos:
runs-on: macos-latest
needs:
- build-on-windows
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- run: chmod +x gradlew
- run: ./gradlew clean --scan
- run: ./gradlew checkMavenCentralPublication --scan
env:
PUBLICATION_CREDENTIALS: ${{ secrets.PUBLICATION_CREDENTIALS }}
- run: ./gradlew build --scan "-Dkotlin.daemon.jvm.options=-Xmx3g"
- run: ./gradlew publish --scan
env:
PUBLICATION_CREDENTIALS: ${{ secrets.PUBLICATION_CREDENTIALS }}