Skip to content

Generate specification documentation #1

Generate specification documentation

Generate specification documentation #1

Workflow file for this run

# This workflow automates the creation of Specification Documents
# which will be copied into https://github.com/jakartaee/specifications
name: Generate specification documentation
on:
workflow_dispatch:
inputs:
specVersion:
description: 'Major and Minor level of release. Example: 3.1'
required: true
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Set up JDK 17
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: 17
distribution: 'temurin'
cache: maven
- name: Generate specification docs
#TODO remove -Pstaging once all Jakarta EE 11 dependencies are GA
run: |
mvn package -Pstaging --file api/pom.xml -Dspec.version=${{ github.event.inputs.specVersion }}
mvn package -Pstaging --file specification/pom.xml -Dstatus=FINAL -Dspec.version=${{ github.event.inputs.specVersion }}
- name: Assemble documentation
run: |
mkdir documentation/
cp specification/target/generated-docs/jakarta-concurrency-spec-${{ github.event.inputs.specVersion }}.pdf documentation/jakarta-concurrency-spec-${{ github.event.inputs.specVersion }}.pdf
cp specification/target/generated-docs/jakarta-concurrency-spec-${{ github.event.inputs.specVersion }}.html documentation/jakarta-concurrency-spec-${{ github.event.inputs.specVersion }}.html
cp -r api/target/apidocs/ documentation/apidocs
- name: Upload documentation
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: Specification Documentation
path: documentation/
if-no-files-found: error