-
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (51 loc) · 1.33 KB
/
statistics.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Statistics Tracker
on: [push, workflow_call]
permissions:
pages: write
id-token: write
jobs:
build:
concurrency:
group: statistics-deploy
cancel-in-progress: true
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./stats_tracker
steps:
- name: Checkout the repository to the runner
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Imgkit
run: |
pip install imgkit
- name: Install wkhtmltopdf
run: |
sudo apt-get install wkhtmltopdf
- name: Generate SVG graphic
id: build
run: bash ./generate_svg.sh
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: stats_tracker/build/
main-deploy:
if: ${{github.ref != 'refs/heads/main'}}
uses:
FRC2593/javabot-2025/.github/workflows/statistics.yml@main
deploy:
concurrency:
group: statistics-deploy
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4