-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added GitHub Actions workflow to deploy JavaDoc and online version
- Loading branch information
Showing
5 changed files
with
54 additions
and
70 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,49 @@ | ||
name: Deploy Javadoc and Artifact for online version to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 8 | ||
distribution: temurin | ||
cache: maven | ||
|
||
- name: Generate Javadoc with Maven | ||
run: mvn javadoc:aggregate | ||
shell: bash | ||
|
||
- name: Generate Javadoc with Maven | ||
run: mvn javadoc:aggregate | ||
shell: bash | ||
|
||
- name: Package and verify project with Maven | ||
run: mvn --batch-mode --update-snapshots verify package | ||
shell: bash | ||
|
||
- name: Copy generated artifact to website | ||
run: cp target/*.jar target/site | ||
shell: bash | ||
|
||
- name: Deploy website to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
clean: true | ||
clean-exclude: | | ||
index.html | ||
run.html | ||
folder: target/site |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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