Skip to content

updated

updated #22

name: Deploy to Maven Central
on:
push:
branches:
- testm
#tags:
# - 'v*.*.*' # Adjust the tag pattern to match your versioning scheme
#release:
# types: [created] # This triggers the workflow when a release is created
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: temurin
- name: Build and deploy to Maven Central
run: mvn deploy -DrepositoryId=central -Durl=https://maven.pkg.github.com/cdcgov/lib-hl7v2-nist-validator
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}