-
Notifications
You must be signed in to change notification settings - Fork 95
/
run-publish.sh
executable file
·26 lines (24 loc) · 1.04 KB
/
run-publish.sh
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
#!/bin/bash
OS=$1
if [ "$OS" == "macos-latest" ]; then
./gradlew publishIosArm64PublicationToSonatypeRepository \
publishIosSimulatorArm64PublicationToSonatypeRepository \
publishIosX64PublicationToSonatypeRepository \
publishMacosArm64PublicationToSonatypeRepository \
publishMacosX64PublicationToSonatypeRepository \
publishTvosArm64PublicationToSonatypeRepository \
publishTvosSimulatorArm64PublicationToSonatypeRepository \
publishTvosX64PublicationToSonatypeRepository \
publishWatchosArm32PublicationToSonatypeRepository \
publishWatchosArm64PublicationToSonatypeRepository \
publishWatchosSimulatorArm64PublicationToSonatypeRepository \
publishWatchosX64PublicationToSonatypeRepository \
publishWatchosX86PublicationToSonatypeRepository \
publishSwiftuiAdditionsPublicationToSonatypeRepository
elif [ "$OS" == "windows-latest" ]; then
./gradlew publishMingwX64PublicationToSonatypeRepository
elif [ "$OS" == "ubuntu-latest" ]; then
./gradlew publishToSonatype
else
./gradlew publishToSonatype
fi