Publish to GitHub Packages #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a package using Maven and then publish it to GitHub packages | |
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path | |
name: Publish to GitHub Packages | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
# this distribution is cached by github actions | |
distribution: 'temurin' | |
# jdk version to use, specified in pom.xml | |
java-version: '21' | |
# use the github actions cached jdk if available. | |
check-latest: false | |
- name: mvn deploy | |
run: mvn -B deploy --no-transfer-progress | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |