Skip to content

Commit

Permalink
github: Add lcov results to GitHub Pages
Browse files Browse the repository at this point in the history
Let's also publish our lcov results to GitHub Pages, instead of only to
Codecov.io. To do this, we need to prepare and upload an artifact in the
format GitHub Pages expects. We can't simply upload the default "zip"
format, but must create a "tar" containing a single "_site" directory.
We add a top-level index file as well, linking to the lcov and Doxygen
documentation.
  • Loading branch information
Patater committed Jun 16, 2024
1 parent ffd5a4b commit 7cc9ba3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,16 @@ jobs:
fail_ci_if_error: true
verbose: true

- name: Upload docs
- name: Prepare GitHub Pages site
run: |
cp -a build/docs/html _site/doxygen
cp -a build/lcov _site/lcov
- name: Upload _site to GitHub
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: build/docs/html
path: _site

deploy:
needs: build
Expand Down
11 changes: 11 additions & 0 deletions _site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Patater GUI Kit</title>
</head>
<body>
<a href="lcov/">LCOV Code Coverage</a>
<a href="doxygen/">Doxygen Documentation</a>
</body>
</html>

0 comments on commit 7cc9ba3

Please sign in to comment.