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: 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 }}'