Skip to content

Commit

Permalink
feat(maven-central): 升级ihub-publish组件,支持发布maven-central仓库 (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-hub authored Jul 28, 2024
1 parent e4360f4 commit 9fdf739
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/gradle-dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Gradle Dependency Graph
on:
schedule:
- cron: '0 */6 * * *'
push:
push:
branches: main

permissions:
Expand All @@ -12,8 +12,6 @@ jobs:
gradle-action-detection:
if: ${{ github.repository_owner == 'ihub-pub' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- cron: '0 6 * * *'
workflow_dispatch:

permissions:
contents: read

jobs:
update:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class IHubPublishPlugin extends IHubProjectPluginAware<IHubPublishExtension> {
applyPlugin MavenCentralPublishPlugin
withExtension(MavenCentralExtension) {
it.repoDir.set project.layout.buildDirectory.dir(REPOS_BUNDLES)
it.authToken.set Base64.encoder.encodeToString((iHubExt.repoUsername.get() + ':' + iHubExt.repoPassword.get()).bytes)
it.authToken.set Base64.encoder.encodeToString((iHubExt.repoUsername.orNull + ':' + iHubExt.repoPassword.orNull).bytes)
// TODO 测试发布手动,后续改为自动发布
it.publishingType.set 'USER_MANAGED'
}
Expand Down

0 comments on commit 9fdf739

Please sign in to comment.