From 052aeb966c53d710221e7d539a0d26f6e7ef641d Mon Sep 17 00:00:00 2001 From: Qingtian Wang Date: Sat, 17 Aug 2024 21:09:01 -0500 Subject: [PATCH] + publish to github packages --- .github/workflows/maven-publish-github.yml | 4 ++-- .../{maven-publish.yml => maven-publish-ossrh.yml} | 0 pom.xml | 11 ++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) rename .github/workflows/{maven-publish.yml => maven-publish-ossrh.yml} (100%) diff --git a/.github/workflows/maven-publish-github.yml b/.github/workflows/maven-publish-github.yml index 434172d..81a74ee 100644 --- a/.github/workflows/maven-publish-github.yml +++ b/.github/workflows/maven-publish-github.yml @@ -1,7 +1,7 @@ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path -name: Maven Package +name: Maven publish github packages on: workflow_dispatch: @@ -30,6 +30,6 @@ jobs: run: mvn -B package --file pom.xml - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml -Pgithub env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish-ossrh.yml similarity index 100% rename from .github/workflows/maven-publish.yml rename to .github/workflows/maven-publish-ossrh.yml diff --git a/pom.xml b/pom.xml index 212dc30..3424070 100644 --- a/pom.xml +++ b/pom.xml @@ -112,6 +112,16 @@ + + github + + + github + GitHub Apache Maven Packages + https://maven.pkg.github.com/q3769/conseq4j + + + @@ -171,7 +181,6 @@ 2.47.0 - true