Skip to content

Commit

Permalink
Publish dev builds to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Dec 8, 2024
1 parent 272cd1d commit 7fc2597
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/KMMBridge-Debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
message: "KMP SPM package update"
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7fc2597

Please sign in to comment.