Skip to content

Publish to GitHub Packages #35

Publish to GitHub Packages

Publish to GitHub Packages #35

Workflow file for this run

# 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@v4
- 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 }}