diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..adb1cb1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +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/checkout@v3.5.0 + + - uses: actions/setup-java@v3.10.0 + with: + java-version: '11' + distribution: 'adopt' + cache: sbt + + - name: Publish Package - lib-hl7v2-nist + run: sbt publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}