Skip to content

Merge pull request #289 from Making-Sense-Info/feature/assignment #47

Merge pull request #289 from Making-Sense-Info/feature/assignment

Merge pull request #289 from Making-Sense-Info/feature/assignment #47

name: Publish Trevas packages to GitHub Packages
on:
push:
branches:
- develop
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
type: choice
options:
- info
- warning
- debug
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: 17
distribution: "adopt"
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.defaultLogLevel=${{ inputs.logLevel || 'warn'}}