diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 816005d..909aa48 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,11 +27,11 @@ jobs: run: mvn -B install --file pom.xml - name: Publish to GitHub Packages Apache Maven if: contains(github.ref, 'main') - run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl '!flyway-community-db-support-archetype' -DskipPublishing=true + run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl '!flyway-community-db-support-archetype' env: GITHUB_TOKEN: ${{ github.token }} - name: Publish Archetype to GitHub Packages Apache Maven if: contains(github.ref, 'main') - run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl flyway-community-db-support-archetype -DskipPublishing=true + run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl flyway-community-db-support-archetype env: GITHUB_TOKEN: ${{ github.token }} diff --git a/pom.xml b/pom.xml index 3e65b19..72c5fab 100644 --- a/pom.xml +++ b/pom.xml @@ -172,19 +172,29 @@ github + + true + + + + github + https://maven.pkg.github.com/flyway/flyway-community-db-support + + + github + https://maven.pkg.github.com/flyway/flyway-community-db-support + + org.sonatype.central central-publishing-maven-plugin - 0.7.0 + 0.8.0 true - - - injected-central-publishing - none - - + + github + diff --git a/settings.xml b/settings.xml index 930d1de..603dd27 100644 --- a/settings.xml +++ b/settings.xml @@ -2,20 +2,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> - - - github - - github - Flyway Community DB Support Maven Packages - https://maven.pkg.github.com/flyway/flyway-community-db-support - - github - Flyway Community DB Support Maven Packages - https://maven.pkg.github.com/flyway/flyway-community-db-support - - - github