File tree Expand file tree Collapse file tree 2 files changed +876
-0
lines changed Expand file tree Collapse file tree 2 files changed +876
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments