Skip to content

Commit

Permalink
try to get publication working
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewparmet committed Jan 30, 2021
1 parent 0758886 commit 44d117f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ jobs:
environment: publication

steps:
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand All @@ -24,3 +33,10 @@ jobs:

- name: Publish
run: ./gradlew publishToRemote closeAndReleaseRepository publishPlugins -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.network.retry.max.attempts=1 -Dorg.gradle.internal.publish.checksums.insecure=true
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
PGP_KEY: ${{ secrets.PGP_KEY }}
PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }}
GRADLE_PORTAL_PUBLISH_KEY: ${{ secrets.GRADLE_PORTAL_PUBLISH_KEY }}
GRADLE_PORTAL_PUBLISH_SECRET: ${{ secrets.GRADLE_PORTAL_PUBLISH_SECRET }}
14 changes: 0 additions & 14 deletions buildSrc/src/main/kotlin/ConfigurePublishing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ fun Project.configurePublishing() {

configure<PublishingExtension> {
repositories {
maven {
name = "integration"
setUrl("${project.rootProject.buildDir}/repos/integration")
}

if (isRelease()) {
maven {
name = "remote"
Expand Down Expand Up @@ -125,15 +120,6 @@ fun Project.configurePublishing() {
}
}

tasks.register("publishToIntegrationRepository") {
group = "publishing"

dependsOn(
tasks.withType<PublishToMavenRepository>()
.matching { it.repositoryIs("integration") }
)
}

tasks.register("publishToRemote") {
enabled = isRelease()
group = "publishing"
Expand Down

0 comments on commit 44d117f

Please sign in to comment.