Skip to content

Update publish.yml

Update publish.yml #16

Workflow file for this run

name: Publish package on Push to main
'on':
workflow_dispatch: null
push:
branches:
- testm
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: temurin
cache: maven
- name: Publish Package - lib-hl7v2-nist
run: mvn -B package
- name: mvn deploy
run: mvn deploy
env:
GITHUB_TOKEN: '${{ secrets.LIB_GITHUB_TOKEN }}'