Skip to content

Publish package to GitHub Packages #8

Publish package to GitHub Packages

Publish package to GitHub Packages #8

Workflow file for this run

name: Publish package to GitHub Packages
on:
workflow_dispatch:
inputs:
TAG:
description: 'The tag to be built'
required: true
type: string
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'v${{ inputs.TAG }}'
- uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}