touchlab / KMMBridge

KMMBridge is a set of Gradle tooling that facilitates publishing and consuming pre-built KMM (Kotlin Multiplatform Mobile) Xcode Framework binaries. See https://kmmbridge.touchlab.co/docs to get started.
https://kmmbridge.touchlab.co/
Apache License 2.0
339 stars 20 forks source link

spm() not updating Package.swift file on Github repo #210

Closed gopi-b4f closed 1 year ago

gopi-b4f commented 1 year ago

Version 0.3.5

Build.gradle.kts

kmmbridge { mavenPublishArtifacts() gitTagVersions() versionPrefix.set("0.2") spm(rootDir.path) } addGithubPackagesRepository()

workflow

jobs: call-kmmbridge-publish: uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildbranches.yml@v0.6

Expected result

Should update package and Package.swift file

Current state

It is updating the package but not updating Package.swift file after the workflow action run successfully

russhwolf commented 1 year ago

If you're using faktorybuildbranches.yml, the update happens a separate branch rather than your main one. It should still be tagged correctly so that Xcode can pick it up when you try to consume the new version.

If you don't want that behavior, you can switch to faktorybuild.yml instead.

gopi-b4f commented 1 year ago

faktorybuildbranches.yml was deleting the build branch after updating the Package.swift file that I did not notice. And then I tried faktorybuild.yml and that worked. Thanks for the solution!