-
Notifications
You must be signed in to change notification settings - Fork 30
45 lines (39 loc) · 2.03 KB
/
specification.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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: 1.0'
required: true
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: 17
distribution: 'temurin'
cache: maven
- name: Generate specification docs
run: |
mvn package --file api/pom.xml -Dspec.version=${{ github.event.inputs.specVersion }}
mvn package --file spec/pom.xml -Drevremark=FINAL -Dspec.version=${{ github.event.inputs.specVersion }}
- name: Assemble documentation
run: |
mkdir documentation/
cp spec/target/generated-docs/jakarta-data-${{ github.event.inputs.specVersion }}.pdf documentation/jakarta-data-${{ github.event.inputs.specVersion }}.pdf
cp spec/target/generated-docs/jakarta-method-name-query-${{ github.event.inputs.specVersion }}.pdf documentation/jakarta-method-name-query-${{ github.event.inputs.specVersion }}.pdf
cp spec/target/generated-docs/jakarta-data-${{ github.event.inputs.specVersion }}.html documentation/jakarta-data-${{ github.event.inputs.specVersion }}.html
cp spec/target/generated-docs/jakarta-method-name-query-${{ github.event.inputs.specVersion }}.html documentation/jakarta-method-name-query-${{ github.event.inputs.specVersion }}.html
cp -r api/target/reports/apidocs/ documentation/apidocs
- name: Upload documentation
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: Specification Documentation
path: documentation/
if-no-files-found: error