Skip to content

Publish to GitHub Packages #3

Publish to GitHub Packages

Publish to GitHub Packages #3

Workflow file for this run

name: Test and Package
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
server-id: github
settings-path: ${{ github.workspace }}
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}