-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #477 from KyleAure/fix-spec-generation
Help automate specification project release review
- Loading branch information
Showing
7 changed files
with
80 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters