Bump the version number in these places:
- Cargo.toml
- powersync-sqlite-core.podspec.
- android/build.gradle.kts
- android/src/prefab/prefab.json
- tool/build_xcframework.sh - CFBundleVersion and CFBundleShortVersionString.
cargo build
to update Cargo.lock
Create a tag:
git tag -am v1.2.3 v1.2.3
git push --tags
Build:
gh workflow run release --ref v1.2.3 -f publish=true
The above does the following:
- Create a draft GitHub release.
- Build the xcframework for iOS and macOS, and upload to GitHub (attached to the above release).
- Build and publish an Android aar to Sonatype staging.
Once that is done, go to the Maven staging repository, and "Close", wait, and "Release" the repository:
https://s01.oss.sonatype.org/#stagingRepositories
Docs: https://central.sonatype.org/publish/release/
Go to GitHub Releases on the repository, update the description, then "Publish Release".
Publish the cocoapod:
pod trunk push powersync-sqlite-core.podspec