-
-
Notifications
You must be signed in to change notification settings - Fork 160
60 lines (60 loc) · 2.17 KB
/
publish-to-sonatype-snapshots.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Publish to Sonatype Snapshots
on:
workflow_dispatch:
jobs:
windows-upload:
runs-on: windows-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Configure JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Upload Windows x64 bits artifacts
run: >-
./gradlew --scan --console=plain
publishMingwX64PublicationToSonatypeSnapshotsRepository
linux-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Configure JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Upload all artifacts Linux can build
run: >-
./gradlew --scan --console=plain
publishAllPublicationsToSonatypeSnapshotsRepository
macos-upload:
runs-on: macos-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Configure JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Upload Darwin artifacts
run: >-
./gradlew --scan --console=plain
publishIosArm32PublicationToSonatypeSnapshotsRepository
publishIosArm64PublicationToSonatypeSnapshotsRepository
publishIosX64PublicationToSonatypeSnapshotsRepository
publishMacosX64PublicationToSonatypeSnapshotsRepository
publishWatchosArm32PublicationToSonatypeSnapshotsRepository
publishWatchosArm64PublicationToSonatypeSnapshotsRepository
publishWatchosX86PublicationToSonatypeSnapshotsRepository
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx5g -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
sonatype_username: ${{ secrets.SONATYPE_USERNAME }}
sonatype_password: ${{ secrets.SONATYPE_PASSWORD }}
GPG_key_id: ${{ secrets.GPG_KEY_ID }}
GPG_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_private_password: ${{ secrets.GPG_PRIVATE_PASSWORD }}