Skip to content

Update use restriction #131

Update use restriction

Update use restriction #131

Workflow file for this run

name: Build Java
on:
push:
branches:
- main
paths:
- "generated/java/**"
- ".github/workflows/build-java.yml"
pull_request:
branches:
- main
paths:
- "generated/java/**"
- ".github/workflows/build-java.yml"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 21
distribution: zulu
server-id: github
cache: "maven"
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven and publish package
run: |
pushd generated/java/datadoc-model
./mvnw --batch-mode -P ssb deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}