Skip to content

maven file update

maven file update #4

name: Deploy to Maven Central
on:
push:
tags:
- 'v*.*.*' # Adjust the tag pattern to match your versioning scheme
release:
types: [created] # This triggers the workflow when a release is created
jobs:
publish:
runs-on: ubuntu-latest
steps:

Check failure on line 12 in .github/workflows/deploy-to-maven-central.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-to-maven-central.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
- 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=sonatype -Durl=https://mvnrepository.com/gov.cdc.lib-hl7v2-nist-validator
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}