diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 163e720..56dadfc 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -17,6 +17,9 @@ jobs: env: WORKSPACE: ${{ github.workspace }} GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8 + MAVEN_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} + MAVEN_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} + MAVEN_PUBLISH_URL: 'https://repo.grails.org/grails/libs-snapshots-local' steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 @@ -34,8 +37,5 @@ jobs: run: ./gradlew assemble - name: Publish to repo.grails.org if: success() && github.event_name == 'push' && matrix.java == '17' - env: - ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} - ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} run: | ./gradlew publish diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c04465..72f1168 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,10 +37,10 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Publish to Sonatype OSSRH env: - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - SONATYPE_NEXUS_URL: ${{ secrets.SONATYPE_NEXUS_URL }} - SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} + NEXUS_PUBLISH_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + NEXUS_PUBLISH_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + NEXUS_PUBLISH_URL: ${{ secrets.SONATYPE_NEXUS_URL }} + NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} SECRING_FILE: ${{ secrets.SECRING_FILE }} diff --git a/build.gradle b/build.gradle index a296296..48268a2 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,6 @@ buildscript { apply plugin: "idea" apply plugin: "org.grails.grails-profile" -apply plugin: "org.grails.internal.grails-profile-publish" apply plugin: "io.spring.dependency-management" group 'org.grails.profiles' @@ -25,8 +24,8 @@ repositories { // mavenLocal() // for local testing, do not commit uncommented } +apply plugin: "org.grails.grails-profile-publish" grailsPublish { - userOrg = 'grails' githubSlug = 'grails-profiles/plugin' license = 'Apache-2.0' title = "Grails Plugin Profile"