diff --git a/.github/workflows/deploy-to-maven-central.yml b/.github/workflows/deploy-to-maven-central.yml index 5825a24..ffad83a 100644 --- a/.github/workflows/deploy-to-maven-central.yml +++ b/.github/workflows/deploy-to-maven-central.yml @@ -10,15 +10,16 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: + - 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 }} \ No newline at end of file + - 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 }} +