From 0a60cfc0bea491f71aa6f43e017c030c1891b8ec Mon Sep 17 00:00:00 2001
From: tsamplesKR <93012035+tsamplesKR@users.noreply.github.com>
Date: Thu, 28 Apr 2022 12:34:35 -0500
Subject: [PATCH] Update workflow to publish jar in qqq-maven
---
.github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++
pom.xml | 17 +++++++++++++++++
2 files changed, 52 insertions(+)
create mode 100644 .github/workflows/maven.yml
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 00000000..80d00dfd
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,35 @@
+# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 17
+ uses: actions/setup-java@v2
+ with:
+ java-version: '17'
+ distribution: 'adopt'
+ cache: maven
+ - name: maven-settings-xml-action
+ uses: whelk-io/maven-settings-xml-action@v20
+ with:
+ servers: '[{ "id": "github-qqq-maven-registry", "username": "${{ secrets.QQQ_MAVEN_REGISTRY_USERNAME }}", "password": "${{ secrets.QQQ_MAVEN_REGISTRY_PASSWORD }}" }]'
+ repositories: '[{ "id": "github-qqq-maven-registry", "url": "https://maven.pkg.github.com/Kingsrook/qqq-maven-registry", "snapshots": { "enabled": "true" }}]'
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
+ - name: Publish to GitHub Packages Apache Maven
+ run: mvn deploy
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
diff --git a/pom.xml b/pom.xml
index 3355595a..375fe3a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -151,4 +151,21 @@
+
+
+
+ github
+ GitHub QQQ Maven Registry
+ https://maven.pkg.github.com/Kingsrook/qqq-maven-registry
+
+
+
+
+
+ github-qqq-maven-registry
+ GitHub QQQ Maven Registry
+ https://maven.pkg.github.com/Kingsrook/qqq-maven-registry
+
+
+