diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..fb56ea2d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: publish to github packages + +on: + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-java@v5 + with: + distribution: "temurin" + java-version: "25" + cache: "maven" + cache-dependency-path: "pom.xml" + - run: mvn versions:set -DnewVersion=$(git rev-parse HEAD) + - run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 750601ca..eefb9227 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,14 @@ + + + github + GitHub Packages + https://maven.pkg.github.com/jasmineRepo/JAS-mine-core + + +