From 6b3afe2dffee3ab9726d7a7996b5f2eab118432d Mon Sep 17 00:00:00 2001 From: Mounika Pacha <124703074+ucf4@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:45:58 -0400 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb6b54f..ea607f4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,9 @@ name: Publish package on Push to main - -on: - workflow_dispatch: +'on': + workflow_dispatch: null push: - branches: ['testm'] - + branches: + - testm jobs: publish: runs-on: ubuntu-latest @@ -14,12 +13,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - uses: actions/setup-java@v4 with: java-version: '17' - distribution: 'temurin' + distribution: temurin cache: maven - - name: Publish Package - lib-hl7v2-nist - run: mvn package + run: mvn -B package + env: + GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'