diff --git a/.github/workflows/deploy-to-github.yml b/.github/workflows/deploy-to-github.yml
new file mode 100644
index 0000000..f8e61a0
--- /dev/null
+++ b/.github/workflows/deploy-to-github.yml
@@ -0,0 +1,27 @@
+name: Deploy Maven Packages
+on:
+ push:
+ branches:
+ - main
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: temurin
+
+ - name: Publish Package - lib-hl7v2-nist
+ run: mvn -B package
+
+ - name: Deploy to Github Packages
+ run: mvn deploy --settings .github/workflows/mvn-settings.xml
+ env:
+ LIB_GITHUB_ACTOR: '${{ secrets.LIB_GITHUB_ACTOR }}'
+ LIB_GITHUB_TOKEN: '${{ secrets.LIB_GITHUB_TOKEN }}'
\ No newline at end of file
diff --git a/.github/workflows/deploy-to-maven.yml b/.github/workflows/deploy-to-maven.yml
new file mode 100644
index 0000000..6cdac22
--- /dev/null
+++ b/.github/workflows/deploy-to-maven.yml
@@ -0,0 +1,38 @@
+name: Java/maven CI/CD Pipeline
+on:
+ push:
+ tags:
+ - 'v*.*.*' # Adjust the tag pattern to match your versioning scheme
+ release:
+ types: [created] # Trigger the workflow when a release is created
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+ - name: Set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ cache: maven
+ - name: Decrypt and Import GPG Key
+ run: |
+ gpgconf --kill gpg-agent || true
+
+ gpgconf --launch gpg-agent || true
+
+ echo "$GPG_PRIVATE_KEY" | gpg --batch --no-tty --import
+
+ env:
+ GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}'
+ GPG_PASSPHRASE: '${{ secrets.GPG_PASSPHRASE }}'
+
+ - name: Publish to Maven Central
+ env:
+ SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
+ SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
+ GPG_PASSPHRASE: '${{ secrets.GPG_PASSPHRASE }}'
+ run: mvn -B clean deploy --settings .github/workflows/mvn-settings.xml
\ No newline at end of file
diff --git a/.github/workflows/mvn-settings.xml b/.github/workflows/mvn-settings.xml
index 017b19d..e3bafad 100644
--- a/.github/workflows/mvn-settings.xml
+++ b/.github/workflows/mvn-settings.xml
@@ -1,9 +1,21 @@
-
+
+
+ central
+ ${env.SONATYPE_USERNAME}
+ ${env.SONATYPE_PASSWORD}
+
+
+ gpg.passphrase
+ ${env.GPG_PASSPHRASE}
+
github
${env.LIB_GITHUB_ACTOR}
${env.LIB_GITHUB_TOKEN}
-
-
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index e926d48..f9212af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
lib-hl7v2-nist-validator
lib-hl7v2-nist-validator
Library wrapper around NIST HL7v2 Validator for validation of HL7 v2.x messages.
- 1.3.5
+ 1.3.7
jar
https://github.com/CDCgov/lib-hl7v2-nist-validator
@@ -39,7 +39,41 @@
+ https://github.com/CDCgov/lib-hl7v2-nist-validator
+
+
+ The Apache Software License, Version 2.0
+ https://www.apache.org/licenses/LICENSE-2.0.txt
+
+
+
+
+ Marcelo Caldas
+ mcq1@cdc.gov
+ CDC
+ https://www.cdc.gov/
+
+
+ Marcia Schulman
+ quq6@cdc.gov
+ CDC
+ https://www.cdc.gov
+
+
+
+ scm:git:git://github.com/CDCgov/lib-hl7v2-nist-validator.git
+ scm:git:ssh://github.com/CDCgov/lib-hl7v2-nist-validator.git
+ https://github.com/CDCgov/lib-hl7v2-nist-validator/tree/main
+
+
+
+ github
+ https://maven.pkg.github.com/cdcgov/lib-hl7v2-nist-validator
+
+
+
+ UTF-8
UTF-8
17
${java.version}
@@ -47,6 +81,12 @@
1.9.0
1.6.3
+
+
+ hit-nexus
+ https://hit-nexus.nist.gov/repository/releases
+
+
@@ -78,7 +118,7 @@
org.apache.maven.plugins
maven-gpg-plugin
- 1.5
+ 3.2.5
sign-artifacts
@@ -256,4 +296,5 @@
+