-
-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/kmp publish #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feat/kmp publish #677
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
26d672d
chore(common): update gitignore
comfrt1k 8c4e4b7
feat(common): publishing gradle
comfrt1k 0429eb0
feat(common): publishing workflow
comfrt1k d2bb112
chore(github): test publish action
comfrt1k e5f456c
chore(github): test publish action
comfrt1k 70f8fd3
chore(kmp): optimize imports
comfrt1k 4acb64e
fix(kmp): publish task
comfrt1k 03f86bb
fix(kmp): checkout correct branch
comfrt1k 291f8f2
fix(kmp): publish token
comfrt1k 5c1e1c6
fix(kmp): change publish runner to mac os
comfrt1k 7f377f6
fix(kmp): group id
comfrt1k 36114d4
fix(kmp): storybook publishing
comfrt1k b3e939d
fix(kmp): storybook publish task
comfrt1k ece5ff2
chore(kmp): empty line
comfrt1k d9220cd
fix(kmp): publishing task
comfrt1k 5351dd2
chore(kmp): update versions
comfrt1k f55c040
chore(kmp): remove test branches from publish workflow
comfrt1k 796e08b
chore(kmp): remove unused inputs
comfrt1k ca5ec27
feat(kmp): permissions
comfrt1k 11754fd
chore(kmp): empty line
comfrt1k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: Publish KMP Library | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: [master] | ||
| paths: | ||
| - 'mobile/kmp/**' | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| jobs: | ||
| publish: | ||
| if: github.event.pull_request.merged == true | ||
| runs-on: macos-15 | ||
| steps: | ||
| - uses: atls/shared/.github/actions/publish/kmp@master | ||
| with: | ||
| workingDirectory: mobile/kmp | ||
| githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
| gradleArguments: > | ||
| :storybook:publishAllPublicationsToGitHubPackagesRepository | ||
| :ui:publishAllPublicationsToGitHubPackagesRepository | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ iosApp/Pods | |
| iosApp/GoogleService-Info.plist | ||
| xcuserdata/ | ||
| *.xcuserstate | ||
| **/*.xcodeproj/xcuserdata/ | ||
66 changes: 0 additions & 66 deletions
66
mobile/kmp/iosApp/iosApp.xcodeproj/xcuserdata/comfrt1k.xcuserdatad/xcschemes/iosApp.xcscheme
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| import org.gradle.api.publish.PublishingExtension | ||
| import org.gradle.api.publish.maven.MavenPublication | ||
| import java.net.URI | ||
|
|
||
| configure<PublishingExtension> { | ||
| publications.withType<MavenPublication>().configureEach { | ||
| groupId = project.group.toString() | ||
| version = project.version.toString() | ||
|
|
||
| pom { | ||
| name.set(project.name) | ||
| description.set(project.description ?: "") | ||
| url.set("https://github.com/atls/hyperion") | ||
|
|
||
| licenses { | ||
| license { | ||
| name.set("The Apache License, Version 2.0") | ||
| url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") | ||
| } | ||
| } | ||
|
|
||
| developers { | ||
| developer { | ||
| id.set("atls") | ||
| name.set("Atlantis Team") | ||
| email.set("me@atls.team") | ||
| } | ||
| } | ||
|
|
||
| scm { | ||
| connection.set("scm:git:git://github.com/atls/hyperion.git") | ||
| developerConnection.set("scm:git:ssh://github.com:atls/hyperion.git") | ||
| url.set("https://github.com/atls/hyperion/tree/master/mobile/kmp") | ||
| } | ||
| } | ||
| } | ||
|
|
||
| repositories { | ||
| maven { | ||
| name = "GitHubPackages" | ||
| url = URI.create("https://maven.pkg.github.com/atls/hyperion") | ||
| credentials { | ||
| username = System.getenv("GITHUB_ACTOR") ?: project.findProperty("gpr.user") as String? | ||
| password = System.getenv("GITHUB_TOKEN") ?: project.findProperty("gpr.key") as String? | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -106,3 +106,4 @@ fun ButtonLayout( | |
| } | ||
| } | ||
| } | ||
|
|
||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.