diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bdf0a791..df3d892b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,7 +47,7 @@ jobs: uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildautoversion.yml@v1.2 with: jvmVersion: 17 - versionBaseProperty: LIBRARY_VERSION + versionBaseProperty: SWIFT_LIBRARY_VERSION publishTask: kmmBridgePublish secrets: gradle_params: -PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" -PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" -PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" diff --git a/docs/Release.md b/docs/Release.md index ef9f4bdd..958848d9 100644 --- a/docs/Release.md +++ b/docs/Release.md @@ -2,7 +2,7 @@ ## How to make a release -1. Update `LIBRARY_VERSION` in `gradle.properties` in the root. +1. Update `LIBRARY_VERSION` and `SWIFT_LIBRARY_VERSION` in `gradle.properties` in the root. 2. Add an entry to the `CHANGELOG.md`. 3. Make a PR and merge it. 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. diff --git a/gradle.properties b/gradle.properties index ee2fbd9c..d44ce494 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,6 +18,10 @@ RELEASE_SIGNING_ENABLED=true # Library config GROUP=com.powersync LIBRARY_VERSION=1.0.0 +# The Swift KMM bridge artifacts are published to SPM via a unique tag version +# The version is the same as the LIBRARY_VERSION, but with a suffix of +SWIFT +# Please update this when updating the LIBRARY_VERSION +SWIFT_LIBRARY_VERSION=1.0.0+SWIFT GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git # POM POM_URL=https://github.com/powersync-ja/powersync-kotlin/