Skip to content

Update publish.yml

Update publish.yml #3

Workflow file for this run

name: Publish package on Push to main
on:
workflow_dispatch:
push:
branches: ['testm']
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Publish Package - lib-hl7v2-nist
run: maven publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}