Skip to content

Commit

Permalink
remote publish
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tiurin committed Jun 24, 2024
1 parent 753b91e commit 16cebed
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 70 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
run_tests_on_api_29:
compileKotlin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,4 +17,4 @@ jobs:
java-version: '17'

- name: Compile framework
run: ./gradlew :ultron:compileDebugKotlin
run: ./gradlew compileDebugKotlin
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy docs
on:
push:
branches:
- kmp
- master

jobs:
github-pages:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
on:
push:
branches:
- kmp-publishing
- kmp

jobs:
publish:
Expand Down Expand Up @@ -58,3 +58,9 @@ jobs:

- name: Gradle publish
run: ./gradlew "${{ matrix.target }}" closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_TOKEN }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_STAGING_PROFILE_ID: ${{ secrets.OSSRH_STAGING_PROFILE_ID }}
SIGNING_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
SIGNING_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
63 changes: 4 additions & 59 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const config: Config = {
],

themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Ultron',
Expand Down Expand Up @@ -79,71 +78,17 @@ const config: Config = {
darkTheme: prismThemes.dracula,
},
algolia: {
// The application ID provided by Algolia
appId: 'TLB3E9OO68',

// Public API key: it is safe to commit it
apiKey: '06f26f943a74848657b1e5bec4c85aaf',

indexName: 'open-toolio',

// Optional: see doc section below
contextualSearch: true,

// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },

// Optional: Algolia search parameters
searchParameters: {},

// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
insights: false,
},
// footer: {
// style: 'dark',
// links: [
// {
// title: 'Docs',
// items: [
// {
// label: 'Tutorial',
// to: '/docs/intro',
// },
// ],
// },
// {
// title: 'Community',
// items: [
// {
// label: 'Telegram',
// href: 'https://t.me/ultron_framework',
// }
// ],
// },
// {
// title: 'More',
// items: [
// {
// label: 'Blog',
// to: '/blog',
// },
// {
// label: 'GitHub',
// href: 'https://github.com/open-tool/ultron',
// },
// ],
// },
// ],
// copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
// },

// https://docusaurus.io/blog/2021/11/21/algolia-docsearch-migration#docsearch-has-a-new-home
// algolia: {
// contextualSearch: true,
// },
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,

plugins: [
Expand Down
6 changes: 0 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ kotlin.mpp.enableCInteropCommonization=true
GROUP=com.atiurin
POM_ARTIFACT_ID=ultron
VERSION_NAME=2.5.0-alpha04

signing.gnupg.passphrase=${OSSRH_GPG_SECRET_KEY_PASSWORD}
signing.gnupg.keyName=${OSSRH_GPG_SECRET_KEY_ID}
sonatypeUsername=${OSSRH_TOKEN}
sonatypePassword=${OSSRH_PASSWORD}
sonatypeStagingProfileId=${OSSRH_STAGING_PROFILE_ID}
1 change: 0 additions & 1 deletion ultron-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ tasks.named("generateMetadataFileForReleasePublication") {
}

signing {
println("Signing lib...")
useGpgCmd()
sign(publishing.publications)
}
9 changes: 9 additions & 0 deletions ultron-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ tasks.withType<PublishToMavenRepository>().configureEach {
mustRunAfter(tasks.withType<Sign>())
}

tasks.withType<PublishToMavenLocal>().configureEach {
dependsOn("signJvmPublication")
dependsOn("signKotlinMultiplatformPublication")
dependsOn("signAndroidReleasePublication")
mustRunAfter("signJvmPublication")
mustRunAfter("signKotlinMultiplatformPublication")
mustRunAfter("signAndroidReleasePublication")
}

signing {
println("Signing lib...")
useGpgCmd()
Expand Down

0 comments on commit 16cebed

Please sign in to comment.