From c2779270eb6cd55cf9d975dd44ea4bc23db8219f Mon Sep 17 00:00:00 2001 From: slam Date: Fri, 2 Feb 2024 19:58:01 +0800 Subject: [PATCH] added: kmmbridge support - Publish KMMBridge --- .github/workflows/publish-kmmbridge.yml | 24 ++++++++++++++++++++++++ shared/build.gradle.kts | 12 ++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/publish-kmmbridge.yml diff --git a/.github/workflows/publish-kmmbridge.yml b/.github/workflows/publish-kmmbridge.yml new file mode 100644 index 0000000..ce2e33e --- /dev/null +++ b/.github/workflows/publish-kmmbridge.yml @@ -0,0 +1,24 @@ +name: Publish KMMBridge + +on: + workflow_dispatch: + +jobs: + kmm-publish: + runs-on: macos-12 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 17 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2.11.1 + with: + gradle-home-cache-cleanup: true + + - name: Build + run: + ./gradlew -PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} kmmBridgePublish \ No newline at end of file diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index d9ff226..2c42011 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -51,6 +51,18 @@ multiplatformSwiftPackage { } } +publishing { + repositories { + maven { + url = uri("https://maven.pkg.github.com/tddworks/lemonsqueezy-kotlin") + credentials { + username = System.getenv("GITHUB_ACTOR") + password = System.getenv("GITHUB_TOKEN") + } + } + } +} + addGithubPackagesRepository() kmmbridge {