Skip to content

Publish

Publish #1

Workflow file for this run

name: Publish
on:
release:
types: [ created ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: mvn -B package
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
MAVEN_USERNAME: ${{ vars.PACKAGES_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.PACKAGES_PASSWORD }}