-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c86fc57
commit 16d346c
Showing
1 changed file
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,12 +24,25 @@ jobs: | |
with: | ||
ssh-private-key: ${{ secrets.KMMBRIDGE_SSH_KEY }} | ||
|
||
- uses: touchlab/[email protected] | ||
id: versionPropertyValue | ||
with: | ||
file: ./gradle.properties | ||
property: LIBRARY_VERSION | ||
|
||
- uses: extractions/netrc@v1 | ||
with: | ||
machine: api.github.com | ||
username: "cirunner" | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Print versionPropertyValue | ||
id: output | ||
run: echo "${{ steps.versionPropertyValue.outputs.propVal }}" | ||
|
||
- name: Touchlab Sample Sanity Check (Ignore this for your CI) | ||
uses: touchlab/sample-group-sanity-check@main | ||
|
||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: "adopt" | ||
|
@@ -47,6 +60,13 @@ jobs: | |
key: ${{ runner.os }}-v4-${{ hashFiles('*.gradle.kts') }} | ||
|
||
- name: Build Main | ||
run: ./gradlew kmmBridgePublish -PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} ${{ secrets.gradle_params }} --no-daemon --stacktrace | ||
run: ./gradlew kmmBridgePublish -PENABLE_PUBLISHING=true -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:MaxMetaspaceSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m" | ||
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 | ||
with: | ||
commitMessage: "KMP CocoaPods package release for ${{ steps.versionPropertyValue.outputs.propVal }}" | ||
tagMessage: "KMP release version ${{ steps.versionPropertyValue.outputs.propVal }}" | ||
tagVersion: ${{ steps.versionPropertyValue.outputs.propVal }} |