Skip to content

Commit 7fc2597

Browse files
committed
Publish dev builds to branch
1 parent 272cd1d commit 7fc2597

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/KMMBridge-Debug.yml

+17-11
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ jobs:
2727
id: output
2828
run: echo "${{ steps.versionPropertyValue.outputs.propVal }}"
2929

30-
- id: trimcommit
31-
uses: prompt/actions-commit-hash@v3
32-
with:
33-
commit: ${{ github.sha }}
34-
3530
- name: Touchlab Sample Sanity Check (Ignore this for your CI)
3631
uses: touchlab/sample-group-sanity-check@main
3732

@@ -51,14 +46,25 @@ jobs:
5146
~/.konan
5247
key: ${{ runner.os }}-v4-${{ hashFiles('*.gradle.kts') }}
5348

49+
- name: Create or Find Artifact Release
50+
id: devrelease
51+
uses: softprops/action-gh-release@v2
52+
with:
53+
draft: true
54+
tag_name: "dev-${{ steps.versionPropertyValue.outputs.propVal }}"
55+
56+
- id: trimcommit
57+
uses: prompt/actions-commit-hash@v3
58+
with:
59+
commit: ${{ github.sha }}
60+
5461
- name: Build Main
55-
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
62+
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
5663
env:
5764
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
5865

59-
- uses: touchlab/ga-update-release-tag@v1
60-
id: update-release-tag
66+
- uses: EndBug/add-and-commit@v9
6167
with:
62-
commitMessage: "KMP SPM package release for ${{ steps.versionPropertyValue.outputs.propVal }}"
63-
tagMessage: "KMP release version ${{ steps.versionPropertyValue.outputs.propVal }}"
64-
tagVersion: ${{ steps.versionPropertyValue.outputs.propVal }}
68+
message: "KMP SPM package update"
69+
committer_name: GitHub Actions
70+
committer_email: 41898282+github-actions[bot]@users.noreply.github.com

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ compileSdk = "34"
66

77
# Dependencies
88
kotlin = "2.0.10"
9-
kmmBridge = "1.1.1"
9+
kmmBridge = "1.1.2-a1"
1010
android-gradle-plugin = "8.2.0"
1111
coroutines = "1.8.1"
1212
kotlinx-datetime = "0.6.0"

0 commit comments

Comments
 (0)