diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1b3c9d67196..1579ab3ce5f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,6 +52,20 @@ jobs: generate_release_notes: true fail_on_unmatched_files: true + - name: Publish to Maven + uses: gradle/gradle-build-action@v2 + env: + MAVEN_USER: "${{secrets.MAVEN_USER}}" + MAVEN_PASSWORD: "${{secrets.MAVEN_PASSWORD}}" + with: + arguments: 'publish --daemon' + generate-job-summary: false + gradle-home-cache-includes: | + caches + jdks + notifications + wrapper + - name: Publish to Curseforge uses: gradle/gradle-build-action@v2 env: diff --git a/gradle.properties b/gradle.properties index fa18d212633..6d6ee4b8944 100644 --- a/gradle.properties +++ b/gradle.properties @@ -153,7 +153,7 @@ noPublishedSources = false # For maven credentials: # Username is set with the 'MAVEN_USER' environment variable, default to "NONE" # Password is set with the 'MAVEN_PASSWORD' environment variable, default to "NONE" -customMavenPublishUrl = +customMavenPublishUrl = https://maven.gtceu.com # The group for maven artifacts. Defaults to the 'project.modGroup' until the last '.' (if any). # So 'mymod' becomes 'mymod' and 'com.myname.mymodid' 'becomes com.myname'