itshan
02/02/2024, 1:16 PM> Failed to publish publication 'KMMBridgeFramework' to repository 'GitHubPackages'
> Could not PUT '<https://maven.pkg.github.com/tddworks/lemonsqueezy-kotlin/com/snacks/lemonsqueezy/shared-kmmbridge/0.1/shared-kmmbridge-0.1.zip>'. Received status code 409 from server: Conflict
• https://github.com/touchlab/KMMBridgeSKIETemplate/blob/main/build.gradle.kts
val autoVersion = project.property(
if (project.hasProperty("AUTO_VERSION")) {
"AUTO_VERSION"
} else {
"LIBRARY_VERSION"
}
poliver
02/02/2024, 6:06 PMAUTO_VERSION
(base version + incremented patch version) is set by the GH workflow when it publishes the app, so its presence needs to be checked when setting the publish version in build.gradle
.itshan
02/03/2024, 1:32 AM- name: Build Main
run: ./gradlew ${{ env.MODULE }}${{ inputs.publishTask }} -PAUTO_VERSION=${{ steps.autoversion.outputs.nextVersion }} -PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} ${{ secrets.gradle_params }} --no-daemon --stacktrace
itshan
02/03/2024, 1:43 AMPackag.swift
which contains binaryTarget using remote url