From 03b1cf2d513b86cdf7b85fd2a76d1882f5e229d2 Mon Sep 17 00:00:00 2001
From: Mounika Pacha <ucf4@cdc.gov>
Date: Fri, 30 Aug 2024 17:30:05 -0400
Subject: [PATCH] updated to push to maven central

---
 .github/workflows/deploy-to-maven.yml |  2 +-
 .github/workflows/publish.yml         | 27 ---------------------------
 2 files changed, 1 insertion(+), 28 deletions(-)
 delete mode 100644 .github/workflows/publish.yml

diff --git a/.github/workflows/deploy-to-maven.yml b/.github/workflows/deploy-to-maven.yml
index 0b1de29..ea09c0b 100644
--- a/.github/workflows/deploy-to-maven.yml
+++ b/.github/workflows/deploy-to-maven.yml
@@ -2,7 +2,7 @@ name: Java/maven CI/CD Pipeline
 on:
   push:
     branches:
-         - testm
+         - main
   #   tags:
   #     - 'v*.*.*'  # Adjust the tag pattern to match your versioning scheme
   # release:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
deleted file mode 100644
index 5723641..0000000
--- a/.github/workflows/publish.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-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 }}'