Skip to content

Commit 97e4f32

Browse files
committed
Update github workflows
- Generate and deploy the release version of docs
1 parent 933ac5a commit 97e4f32

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222
with:
2323
token: ${{ secrets.GITHUB_TOKEN }}
24-
- name: Set up JDK
24+
- name: Setup JDK
2525
uses: actions/setup-java@v4
2626
with:
2727
distribution: 'adopt'

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
token: ${{ secrets.GITHUB_TOKEN }}
27-
- name: Set up JDK
27+
- name: Setup JDK
2828
uses: actions/setup-java@v4
2929
with:
3030
distribution: 'adopt'
@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/checkout@v4
4949
with:
5050
token: ${{ secrets.GITHUB_TOKEN }}
51-
- name: Set up JDK 17
51+
- name: Setup JDK
5252
uses: actions/setup-java@v4
5353
with:
5454
distribution: 'adopt'

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636
- uses: gradle/actions/wrapper-validation@v3
37-
- name: Set up JDK
37+
- name: Setup JDK
3838
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'adopt'
@@ -51,6 +51,17 @@ jobs:
5151
- name: Set the current release version
5252
id: release_version
5353
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
54+
- name: Generate Docs
55+
id: build
56+
run: ./gradlew docs
57+
- name: Deploy to GitHub Pages
58+
id: deployment
59+
uses: rainboyan/[email protected]
60+
env:
61+
VERSION: ${{ steps.release_version.outputs.release_version }}
62+
TOKEN: ${{ secrets.GH_TOKEN }}
63+
BRANCH: gh-pages
64+
FOLDER: build/docs/manual
5465
- name: Generate secring file
5566
id: secring
5667
env:

0 commit comments

Comments
 (0)