File tree 2 files changed +32
-3
lines changed
2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 40
40
- name : " Publish"
41
41
shell : sh
42
42
run : |
43
- sh gradlew publishKotlinMultiplatformPublicationToGitHubPackagesRepository publishAndroidDebugPublicationToGitHubPackagesRepository publishAndroidReleasePublicationToGitHubPackagesRepository kmmBridgePublish \
43
+ sh gradlew publishKotlinMultiplatformPublicationToGitHubPackagesRepository publishAndroidReleasePublicationToGitHubPackagesRepository kmmBridgePublish \
44
44
-PGITHUB_ARTIFACT_RELEASE_ID=${{ steps.devrelease.outputs.id }} \
45
45
-PENABLE_PUBLISHING=true \
46
46
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
47
- -PGITHUB_REPO=${{ github.repository }}
48
- --no-daemon --info --stacktrace
47
+ -PGITHUB_REPO=${{ github.repository }} \
48
+ --no-daemon \
49
+ --info \
50
+ --stacktrace
51
+
52
+ # The GitHub Release hosts the Xcode binary, but we need to query GitHub for the URL after the binary is uploaded,
53
+ # then generate the Package.swift file. Once that is committed, we need to point the release tag at the final commit.
54
+ - uses : touchlab/ga-update-release-tag@v1
55
+ id : update-release-tag
56
+ with :
57
+ commitMessage : " KMP SPM package release for ${{ steps.versionPropertyValue.outputs.propVal }}"
58
+ tagMessage : " KMP release version ${{ steps.versionPropertyValue.outputs.propVal }}"
59
+ tagVersion : ${{ steps.versionPropertyValue.outputs.propVal }}
Original file line number Diff line number Diff line change @@ -185,6 +185,24 @@ kmmbridge {
185
185
)
186
186
}
187
187
188
+ addGithubPackagesRepository()
189
+
190
+ publishing {
191
+ repositories {
192
+ mavenLocal()
193
+ maven {
194
+ name = " AirthingsGitHubPackages"
195
+ url = uri(" https://maven.pkg.github.com/airthings/kmplog" )
196
+
197
+ credentials {
198
+ // The following are automatically generated by GitHub.
199
+ username = System .getenv(" GITHUB_ACTOR" )
200
+ password = System .getenv(" GITHUB_TOKEN" )
201
+ }
202
+ }
203
+ }
204
+ }
205
+
188
206
/* *
189
207
* Apple requires 3rd party frameworks to include a privacy policy file.
190
208
*
You can’t perform that action at this time.
0 commit comments