-
Notifications
You must be signed in to change notification settings - Fork 298
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 #3123 from Multiverse/ben/javadoc
Javadoc with github action
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Dispatch: Deploy Javadoc' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
target_tag: | ||
description: 'Version to generate javadoc' | ||
required: true | ||
|
||
jobs: | ||
javadocs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.target_tag }} | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
cache: gradle | ||
|
||
- name: build javadoc | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: javadoc | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_VERSION: ${{ inputs.target_tag }} | ||
|
||
- name: Deploy javadoc to gh pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
folder: build/docs/javadoc | ||
branch: javadoc | ||
target-folder: javadoc/${{ inputs.target_tag }} | ||
commit-message: Deploy javadoc for ${{ inputs.target_tag }} |
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