Skip to content

Commit 62a93e2

Browse files
[Chore] Update KMM deploy action (#186)
1 parent 5c4137b commit 62a93e2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/[email protected]
4848
with:
4949
jvmVersion: 17
50-
versionBaseProperty: LIBRARY_VERSION
50+
versionBaseProperty: SWIFT_LIBRARY_VERSION
5151
publishTask: kmmBridgePublish
5252
secrets:
5353
gradle_params: -PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" -PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" -PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}"

docs/Release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## How to make a release
44

5-
1. Update `LIBRARY_VERSION` in `gradle.properties` in the root.
5+
1. Update `LIBRARY_VERSION` and `SWIFT_LIBRARY_VERSION` in `gradle.properties` in the root.
66
2. Add an entry to the `CHANGELOG.md`.
77
3. Make a PR and merge it.
88
4. Once the PR is merged and in the `main` branch then manually run the Github action `Deploy to Sonatype`. This will create a release to Maven Central and will also update the version of the `powersync-kotlin` SPM package used in the Swift SDK. If the release contains changes pertaining to the Swift SDK you will need to update the `powersync-kotlin` SPM package version in that repo and make a release there as well.

gradle.properties

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ RELEASE_SIGNING_ENABLED=true
1818
# Library config
1919
GROUP=com.powersync
2020
LIBRARY_VERSION=1.0.0
21+
# The Swift KMM bridge artifacts are published to SPM via a unique tag version
22+
# The version is the same as the LIBRARY_VERSION, but with a suffix of +SWIFT
23+
# Please update this when updating the LIBRARY_VERSION
24+
SWIFT_LIBRARY_VERSION=1.0.0+SWIFT
2125
GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git
2226
# POM
2327
POM_URL=https://github.com/powersync-ja/powersync-kotlin/

0 commit comments

Comments
 (0)