Skip to content

added the maven yml file and updated the mvnsetting file #5

added the maven yml file and updated the mvnsetting file

added the maven yml file and updated the mvnsetting file #5

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:
deploy:

Check failure on line 10 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 10
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: 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 }}