27
27
id : output
28
28
run : echo "${{ steps.versionPropertyValue.outputs.propVal }}"
29
29
30
- - id : trimcommit
31
- uses : prompt/actions-commit-hash@v3
32
- with :
33
- commit : ${{ github.sha }}
34
-
35
30
- name : Touchlab Sample Sanity Check (Ignore this for your CI)
36
31
uses : touchlab/sample-group-sanity-check@main
37
32
@@ -51,14 +46,25 @@ jobs:
51
46
~/.konan
52
47
key : ${{ runner.os }}-v4-${{ hashFiles('*.gradle.kts') }}
53
48
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
+
54
61
- 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
56
63
env :
57
64
GRADLE_OPTS : -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
58
65
59
- - uses : touchlab/ga-update-release-tag@v1
60
- id : update-release-tag
66
+ - uses : EndBug/add-and-commit@v9
61
67
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
0 commit comments