Skip to content

Create publish.yml

Create publish.yml #1

Workflow file for this run

name: Publish Jar on Push to main
on:
workflow_dispatch:
push:
branches: ['main']
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: '11'
distribution: 'adopt'
cache: sbt
- name: Publish Package - lib-hl7v2-nist
run: sbt publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}