Skip to content

Commit

Permalink
publish report to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingTwist committed Jan 29, 2024
1 parent c16db4d commit 2ba52bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ jobs:
ag --output ./docs/api-docs/asyncapi/ ./src/main/resources/dx/AsyncApi.schema.yml @asyncapi/html-template
redocly build-docs ./src/main/resources/dx/Swagger.schema.yml --output=./docs/api-docs/swagger.html
- name: Retrieve Jacoco Report
uses: actions/download-artifact@master
with:
name: jacoco-site
path: ./docs/jacoco

- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload docs dir
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ jobs:
publish_only_summary: true
- name: Add Coverage Job Summary
run: echo "${{ steps.jacoco_reporter.outputs.coverageSummary }}" >> $GITHUB_STEP_SUMMARY
- name: Publish Jacoco Report for GitHub Pages
uses: actions/upload-artifact@master
with:
name: jacoco-site
path: target/site/jacoco
retention-days: 1
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>JChess Docs</title> <link rel="stylesheet" href="style.css"></head><body style="padding: 0; margin: 0"> <div style="width: 100vw; height: 100vh; display: flex; flex-direction: column; gap: 30px; align-items: center; justify-content: center" id="buttonPanel"> <button class="docs-button" role="button" onclick="window.location.href='java-docs/index.html';">Open Java-Docs</button> <button class="docs-button" role="button" onclick="window.location.href='api-docs/swagger.html';">Open Swagger (REST API) Docs</button> <button class="docs-button" role="button" onclick="window.location.href='api-docs/asyncapi/index.html';">Open AsyncAPI (WebSocket API) Docs</button> </div></body></html>
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>JChess Docs</title> <link rel="stylesheet" href="style.css"></head><body style="padding: 0; margin: 0"> <div style="width: 100vw; height: 100vh; display: flex; flex-direction: column; gap: 30px; align-items: center; justify-content: center" id="buttonPanel"> <button class="docs-button" role="button" onclick="window.location.href='java-docs/index.html';">Open Java-Docs</button> <button class="docs-button" role="button" onclick="window.location.href='api-docs/swagger.html';">Open Swagger (REST API) Docs</button> <button class="docs-button" role="button" onclick="window.location.href='api-docs/asyncapi/index.html';">Open AsyncAPI (WebSocket API) Docs</button> <button class="docs-button" role="button" onclick="window.location.href='jacoco/index.html';">Open JaCoCo Coverage Report</button> </div></body></html>
Expand Down

0 comments on commit 2ba52bb

Please sign in to comment.