From 22fe0ee4afb71c5a48c66bdecb35fa8dcfe3ff68 Mon Sep 17 00:00:00 2001 From: Thad Guidry Date: Tue, 12 Nov 2024 09:25:36 +0800 Subject: [PATCH] fix error not publishing correctly to GitHub Packages --- .github/workflows/snapshot.yml | 3 ++- pom.xml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 361c44a3..f103e121 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -33,8 +33,9 @@ jobs: distribution: 'liberica' java-version: 21 cache: 'maven' + server-id: github - name: Compile & Deploy to GitHub Packages - run: mvn -Drevision=${{ github.event.inputs.version }} -B deploy --file pom.xml + run: mvn -Drevision=${{ github.event.inputs.version }} -B deploy -DdeployAtEnd --file pom.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 936e260b..f077ceb8 100644 --- a/pom.xml +++ b/pom.xml @@ -53,9 +53,21 @@ + + github + GitHub Packages + https://maven.pkg.github.com/9tigerio/db2rest + + true + + central + Central Portal https://central.sonatype.com + + false +