From 0e642c8b4766241007e839f7555ac7641000e05d Mon Sep 17 00:00:00 2001 From: Mounika Pacha Date: Fri, 30 Aug 2024 17:21:29 -0400 Subject: [PATCH 1/3] updated to push to maven central --- .github/workflows/deploy-to-maven.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-to-maven.yml b/.github/workflows/deploy-to-maven.yml index 6cdac22..ea09c0b 100644 --- a/.github/workflows/deploy-to-maven.yml +++ b/.github/workflows/deploy-to-maven.yml @@ -1,10 +1,12 @@ 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 + branches: + - main + # tags: + # - 'v*.*.*' # Adjust the tag pattern to match your versioning scheme + # release: + # types: [created] # Trigger the workflow when a release is created jobs: build: From 2de9332848abd655beab88c68b066419f063aed3 Mon Sep 17 00:00:00 2001 From: Mounika Pacha Date: Fri, 30 Aug 2024 17:22:16 -0400 Subject: [PATCH 2/3] updated to push to maven central --- .github/workflows/deploy-to-maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-maven.yml b/.github/workflows/deploy-to-maven.yml index ea09c0b..0b1de29 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: - - main + - testm # tags: # - 'v*.*.*' # Adjust the tag pattern to match your versioning scheme # release: From 03b1cf2d513b86cdf7b85fd2a76d1882f5e229d2 Mon Sep 17 00:00:00 2001 From: Mounika Pacha Date: Fri, 30 Aug 2024 17:30:05 -0400 Subject: [PATCH 3/3] 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 }}'