Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
24 changes: 17 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,19 +172,29 @@
<profiles>
<profile>
<id>github</id>
<properties>
<skipTests>true</skipTests>
</properties>
<distributionManagement>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/flyway/flyway-community-db-support</url>
</repository>
<snapshotRepository>
<id>github</id>
<url>https://maven.pkg.github.com/flyway/flyway-community-db-support</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.7.0</version>
<version>0.8.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>injected-central-publishing</id>
<phase>none</phase>
</execution>
</executions>
<configuration>
<publishingServerId>github</publishingServerId>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
14 changes: 0 additions & 14 deletions settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
<profiles>
<profile>
<id>github</id>
<properties>
<snapshotRepository.id>github</snapshotRepository.id>
<snapshotRepository.name>Flyway Community DB Support Maven Packages</snapshotRepository.name>
<snapshotRepository.url>https://maven.pkg.github.com/flyway/flyway-community-db-support</snapshotRepository.url>

<releaseRepository.id>github</releaseRepository.id>
<releaseRepository.name>Flyway Community DB Support Maven Packages</releaseRepository.name>
<releaseRepository.url>https://maven.pkg.github.com/flyway/flyway-community-db-support</releaseRepository.url>
</properties>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
Expand Down