Skip to content

Commit ed70f97

Browse files
committed
ci: scripts: test maintainers UI
xxx Signed-off-by: Benjamin Cabé <[email protected]>
1 parent da9aa8f commit ed70f97

File tree

2 files changed

+876
-0
lines changed

2 files changed

+876
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build and Deploy Maintainers Visualization
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
schedule:
7+
# Run daily at 00:00 UTC to keep the visualization up to date
8+
- cron: '0 0 * * *'
9+
workflow_dispatch: # Allow manual trigger
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.x'
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install pyyaml tabulate
36+
37+
- name: Create output directory
38+
run: mkdir -p _site
39+
40+
- name: Generate visualization
41+
run: |
42+
python scripts/generate_maintainers_web.py
43+
mv index.html maintainers_data.json _site/
44+
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v4
47+
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v3
50+
with:
51+
path: _site
52+
53+
deploy:
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
57+
runs-on: ubuntu-latest
58+
needs: build
59+
steps:
60+
- name: Deploy to GitHub Pages
61+
id: deployment
62+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)