Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Publish Maven artifact to GitHub Packages #4

Publish Maven artifact to GitHub Packages

Publish Maven artifact to GitHub Packages #4

Workflow file for this run

name: Publish Maven artifact to GitHub Packages
on:
release:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}