Skip to content

Commit

Permalink
Add greeness report deploy to gh pages (#71)
Browse files Browse the repository at this point in the history
* Add greeness report deploy to gh pages

Signed-off-by: Crola1702 <[email protected]>

* Fix tree syntax

Signed-off-by: Crola1702 <[email protected]>

* Spell 'greenness' correctly

Signed-off-by: Crola1702 <[email protected]>

---------

Signed-off-by: Crola1702 <[email protected]>
  • Loading branch information
Crola1702 authored Jul 23, 2024
1 parent 47f9844 commit 03265ea
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/greenness-reports-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy greenness reports to GitHub pages

on:
push:
branches:
- 'main'
paths:
- 'reports/greenness_reports/'
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate directory index using tree
run: |
# Tree is installed by default on gh runners
cd reports/greenness_reports/
tree -H '.' \
--noreport \
--dirsfirst \
-T "Buildfarm Greenness Reports" \
-P "*.html" \
-o index.html
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: 'reports/greenness_reports/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4


0 comments on commit 03265ea

Please sign in to comment.