Skip to content

Commit

Permalink
added: kmmbridge support
Browse files Browse the repository at this point in the history
 - Publish KMMBridge
  • Loading branch information
hanrw committed Feb 2, 2024
1 parent d2df9da commit c277927
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-kmmbridge.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
gradle-home-cache-cleanup: true

- name: Build
run:
./gradlew -PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} kmmBridgePublish
12 changes: 12 additions & 0 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c277927

Please sign in to comment.