Skip to content

Commit

Permalink
update publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Piasy committed Dec 11, 2024
1 parent 108e9dd commit d1805ae
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,22 @@ Then check reports in `kmp-xlog/build/reports/tests/testDebugUnitTest`.

### Publish

Maven central portal credentials and signing configs are set in `~/.gradle/gradle.properties`.

#### Maven publish

```bash
# on Windows: need manual release on website
.\script\publish_windows.bat
# on Linux: need manual release on website
./script/publish_linux.sh
# on macOS: no manual release needed
./script/publish_others.sh
```

#### iOS/macOS cocoapods

```bash
brew install xcodegen
./build_apple.sh
./publish_apple_cocoapods.sh
```
5 changes: 4 additions & 1 deletion scripts/publish_linux.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash

./gradlew publishLinuxX64PublicationToSonatypeRepository closeAndReleaseRepository
./gradlew clean publishLinuxX64PublicationToMavenCentralRepository

# login to https://central.sonatype.com/publishing/deployments ,
# and release linux module manually
5 changes: 4 additions & 1 deletion scripts/publish_windows.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@echo off

.\gradlew publishMingwX64PublicationToSonatypeRepository closeAndReleaseRepository
.\gradlew clean publishMingwX64PublicationToMavenCentralRepository

:: login to https://central.sonatype.com/publishing/deployments ,
:: and release windows module manually

0 comments on commit d1805ae

Please sign in to comment.