diff --git a/.github/workflows/KMMBridge-Debug.yml b/.github/workflows/KMMBridge-Debug.yml index 2949773..2af2d3d 100644 --- a/.github/workflows/KMMBridge-Debug.yml +++ b/.github/workflows/KMMBridge-Debug.yml @@ -27,11 +27,6 @@ jobs: id: output run: echo "${{ steps.versionPropertyValue.outputs.propVal }}" - - id: trimcommit - uses: prompt/actions-commit-hash@v3 - with: - commit: ${{ github.sha }} - - name: Touchlab Sample Sanity Check (Ignore this for your CI) uses: touchlab/sample-group-sanity-check@main @@ -51,14 +46,25 @@ jobs: ~/.konan key: ${{ runner.os }}-v4-${{ hashFiles('*.gradle.kts') }} + - name: Create or Find Artifact Release + id: devrelease + uses: softprops/action-gh-release@v2 + with: + draft: true + tag_name: "dev-${{ steps.versionPropertyValue.outputs.propVal }}" + + - id: trimcommit + uses: prompt/actions-commit-hash@v3 + with: + commit: ${{ github.sha }} + - name: Build Main - run: ./gradlew kmmBridgePublish -PLIBRARY_VERSION=${{ steps.versionPropertyValue.outputs.propVal }} -PENABLE_PUBLISHING=true -PNATIVE_BUILD_TYPE=DEBUG -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} --no-daemon --info --stacktrace + run: ./gradlew kmmBridgePublish -PLIBRARY_VERSION=${{ steps.versionPropertyValue.outputs.propVal }} -PENABLE_PUBLISHING=true -PNATIVE_BUILD_TYPE=DEBUG -PGITHUB_ARTIFACT_RELEASE_ID=${{ steps.devrelease.outputs.id }} -PGITHUB_ARTIFACT_IDENTIFIER_NAME=${{ steps.trimcommit.outputs.short }} -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} --no-daemon --info --stacktrace env: GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m" - - uses: touchlab/ga-update-release-tag@v1 - id: update-release-tag + - uses: EndBug/add-and-commit@v9 with: - commitMessage: "KMP SPM package release for ${{ steps.versionPropertyValue.outputs.propVal }}" - tagMessage: "KMP release version ${{ steps.versionPropertyValue.outputs.propVal }}" - tagVersion: ${{ steps.versionPropertyValue.outputs.propVal }} \ No newline at end of file + message: "KMP SPM package update" + committer_name: GitHub Actions + committer_email: 41898282+github-actions[bot]@users.noreply.github.com \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7a3db91..52d1adf 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -6,7 +6,7 @@ compileSdk = "34" # Dependencies kotlin = "2.0.10" -kmmBridge = "1.1.1" +kmmBridge = "1.1.2-a1" android-gradle-plugin = "8.2.0" coroutines = "1.8.1" kotlinx-datetime = "0.6.0"