File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 31
31
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.PACKAGE_SIGNING_KEY }}
32
32
ORG_GRADLE_PROJECT_signingKeyPassword : ${{ secrets.PACKAGE_SIGNING_KEY_PASSWORD }}
33
33
ORG_GRADLE_PROJECT_githubRepository : ${{ github.repository }}
34
+ ORG_GRADLE_PROJECT_githubToken : ${{ github.token }}
34
35
ORG_GRADLE_PROJECT_ossrhUsername : ${{ secrets.OSSRH_USERNAME }}
35
36
ORG_GRADLE_PROJECT_ossrhPassword : ${{ secrets.OSSRH_PASSWORD }}
36
37
60
61
ORG_GRADLE_PROJECT_githubRepository : ${{ github.repository }}
61
62
- name : Publish Documentation
62
63
63
- env :
64
- ACTIONS_DEPLOY_KEY : ${{ secrets.GH_PAGES_DEPLOY_KEY }}
65
- PUBLISH_BRANCH : gh-pages
66
- PUBLISH_DIR : ./build/dokka
67
64
with :
68
- emptyCommits : false
65
+ publish_dir : ./build/dokka
66
+ deploy_key : ${{ secrets.GH_PAGES_DEPLOY_KEY }}
Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ artifacts {
78
78
}
79
79
80
80
lateinit var publication: MavenPublication
81
- lateinit var releaseRepository: NexusRepository
81
+ lateinit var githubPackages: ArtifactRepository
82
+ lateinit var mavenCentral: NexusRepository
82
83
83
84
publishing {
84
85
publications {
@@ -121,11 +122,20 @@ publishing {
121
122
}
122
123
}
123
124
}
125
+ repositories {
126
+ githubPackages = maven(" https://maven.pkg.github.com/$githubRepository " ) {
127
+ name = " GitHubPackages"
128
+ credentials {
129
+ username = githubOwner
130
+ password = githubToken
131
+ }
132
+ }
133
+ }
124
134
}
125
135
126
136
nexusPublishing {
127
137
repositories {
128
- releaseRepository = sonatype {
138
+ mavenCentral = sonatype {
129
139
username.set(ossrhUsername)
130
140
password.set(ossrhPassword)
131
141
}
@@ -145,12 +155,14 @@ nexusStaging {
145
155
}
146
156
147
157
val closeAndReleaseRepository by project.tasks
148
- closeAndReleaseRepository.mustRunAfter(releaseRepository.publishTask)
158
+ closeAndReleaseRepository.mustRunAfter(mavenCentral.publishTask)
159
+ val publish by tasks
160
+
149
161
150
162
task(" release" ) {
151
163
group = " release"
152
164
description = " Releases the project to Maven Central"
153
- dependsOn(releaseRepository.publishTask , closeAndReleaseRepository)
165
+ dependsOn(publish , closeAndReleaseRepository)
154
166
}
155
167
156
168
idea {
You can’t perform that action at this time.
0 commit comments