-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
39 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 |
---|---|---|
|
@@ -23,42 +23,4 @@ jobs: | |
run: chmod +x mvnw | ||
|
||
- name: Build with Maven | ||
run: ./mvnw --no-transfer-progress --batch-mode compile | ||
|
||
publish-docs-reports: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for mvnw | ||
run: chmod +x mvnw | ||
|
||
- name: Export project version | ||
run: echo "PROJECT_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | ||
|
||
- name: Generate reports | ||
run: ./mvnw --no-transfer-progress --batch-mode site | ||
|
||
- name: Deploy maven reports to GitHub Pages as current version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: target/site | ||
target-folder: docs/${{ env.PROJECT_VERSION }}/site | ||
|
||
- name: Deploy maven reports to GitHub Pages as latest version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: target/site | ||
target-folder: docs/latest/site | ||
run: ./mvnw --no-transfer-progress --batch-mode test compile |
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,45 @@ | ||
name: Update gh-pages | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ Java CI ] | ||
types: [ completed ] | ||
|
||
jobs: | ||
publish-docs-reports: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for mvnw | ||
run: chmod +x mvnw | ||
|
||
- name: Export project version | ||
run: echo "PROJECT_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | ||
|
||
- name: Generate reports | ||
run: ./mvnw --no-transfer-progress --batch-mode site | ||
|
||
- name: Deploy maven reports to GitHub Pages as current version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: target/site | ||
target-folder: docs/${{ env.PROJECT_VERSION }}/site | ||
|
||
- name: Deploy maven reports to GitHub Pages as latest version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: target/site | ||
target-folder: docs/latest/site |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.