diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8aa48b100..05c684940 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -64,14 +64,12 @@ jobs: ./mvnw -B -e \ -Preleases \ - -Pmaven-central \ - -Darguments='-Preleases -Pmaven-central' \ -DdryRun='${{ inputs.dry-run }}' \ -Dpassword='${{ secrets.GITHUB_TOKEN }}' \ -DreleaseVersion="${release_version}" \ -DsignTag=false \ -Dtag="v${release_version}" \ - clean release:prepare release:perform + clean verify release:prepare release:perform echo "Created staging release for ${group_id}/${artifact_id}/${release_version}" env: diff --git a/pom.xml b/pom.xml index 2163a5f21..e49fea9a5 100644 --- a/pom.xml +++ b/pom.xml @@ -55,6 +55,19 @@ + + + ossrh + Maven Central Releases + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + ossrh + Maven Central Snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots + + + GitHub Issues https://github.com/ascopes/java-compiler-testing/issues @@ -420,6 +433,10 @@ org.apache.maven.plugins maven-release-plugin + + -Dmaven.test.skip -Dinvoker.skip -Preleases + deploy + clean verify releases @@ -664,40 +681,6 @@ - - maven-central - - - - ossrh - Maven Central Releases - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - ossrh - Maven Central Snapshots - https://s01.oss.sonatype.org/content/repositories/snapshots - - - - - - github - - - - github - GitHub Packages - https://maven.pkg.github.com/${project-slug} - - - github - GitHub Packages Snapshots - https://maven.pkg.github.com/${project-slug} - - - - releases