Skip to content

Build common

Build common #12

Workflow file for this run

name: Build common
on:
push:
branches: [ "main" ]
paths:
- 'pta-common/**'
pull_request:
branches: [ "main" ]
paths:
- 'pta-common/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
cache-dependency-path: 'pta-common/pom.xml'
- name: Build with Maven
run: mvn -B package --file pta-common/pom.xml
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy --file pta-common/pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}