-
Notifications
You must be signed in to change notification settings - Fork 26
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 #134 from /issues/121
Issues/121
- Loading branch information
Showing
4 changed files
with
136 additions
and
17 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,27 @@ | ||
name: generate-jekyll-pages-for-docs | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ update-gh-pages ] | ||
branches: [ main ] | ||
types: [ completed ] | ||
|
||
jobs: | ||
generate-jekyll-pages: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
fetch-depth: 0 | ||
|
||
- name: Generate pages from present docs folders and templates | ||
run: bash ./generate-pages.sh | ||
env: | ||
MASTER_BRANCH_NAME: origin/main | ||
SOURCE_INDEX_FILE: README.md | ||
|
||
- name: Commit changes | ||
uses: EndBug/[email protected] |
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 |
---|---|---|
|
@@ -11,29 +11,30 @@ on: | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
- name: Checkout code | ||
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 gradlew | ||
run: chmod +x gradlew | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
publish-docs-reports: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
|
@@ -60,13 +61,15 @@ jobs: | |
clean: true | ||
folder: build/reports/tests | ||
target-folder: docs/latest/junit | ||
|
||
- name: Deploy jacoco report to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/reports/jacoco | ||
target-folder: docs/latest/jacoco | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
|
@@ -82,13 +85,15 @@ jobs: | |
clean: true | ||
folder: build/reports/tests | ||
target-folder: docs/${{ env.PROJECT_VERSION }}/junit | ||
|
||
- name: Deploy jacoco report to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/reports/jacoco | ||
target-folder: docs/${{ env.PROJECT_VERSION }}/jacoco | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: update-gh-pages | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ Java CI with Gradle ] | ||
types: [ completed ] | ||
branches: [ main ] | ||
|
||
jobs: | ||
generate-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: 'temurin' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Export project version | ||
run: echo "PROJECT_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')" >> $GITHUB_ENV | ||
|
||
- name: Generate Javadoc | ||
run: ./gradlew javadoc | ||
|
||
- name: Run tests and generate reports | ||
run: ./gradlew test | ||
|
||
- name: Deploy site (javadocs) to GitHub Pages for current version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/docs/javadoc | ||
target-folder: docs/${{ env.PROJECT_VERSION }}/javadoc | ||
|
||
- name: Deploy tests results to GitHub Pages for current version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/reports/tests | ||
target-folder: docs/${{ env.PROJECT_VERSION }}/junit | ||
|
||
- name: Deploy jacoco report to GitHub Pages for current version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/reports/jacoco | ||
target-folder: docs/${{ env.PROJECT_VERSION }}/jacoco | ||
|
||
- name: Deploy site (javadocs) to GitHub Pages as latest version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/docs/javadoc | ||
target-folder: docs/latest/javadoc | ||
|
||
- name: Deploy tests results to GitHub Pages as latest version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/reports/tests | ||
target-folder: docs/latest/junit | ||
|
||
- name: Deploy jacoco report to GitHub Pages as latest version | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
clean: true | ||
folder: build/reports/jacoco | ||
target-folder: docs/latest/jacoco |