@@ -3,48 +3,51 @@ name: Deploy to static server
33on :
44 push :
55 branches :
6- - ep2024
7- - ep2025
6+ - " 2025"
87 schedule :
9- - cron : " */10 * * * *" # every 10 minutes
8+ - cron : " 0 0 * * *" # every day at midnight
109 workflow_dispatch :
1110
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ concurrency :
17+ group : " pages"
18+ cancel-in-progress : true
19+
1220jobs :
13- tests :
14- name : Run tests
21+ deploy :
22+ name : Deploy to GitHub Pages
1523 runs-on : ubuntu-latest
16- timeout-minutes : 10
24+ timeout-minutes : 15
1725
1826 steps :
1927 - name : Check out repository
20- uses : actions/checkout@v4
28+ uses : actions/checkout@v5
2129
2230 - name : Set up Python 3
23- uses : actions/setup-python@v5
31+ uses : actions/setup-python@v6
2432 with :
25- python-version : ' 3.13'
33+ python-version : " 3.13"
2634
27- - name : Setup uv
28- uses : astral-sh/setup-uv@v6
29-
30- - name : Install dependencies from uv.lock
31- run : make deps/install
35+ - name : Set up uv
36+ uses : astral-sh/setup-uv@v7
3237
3338 - name : Download data
34- run : uv run make download EXCLUDE="youtube" > /dev/null 2>&1
39+ run : uv run make download EXCLUDE="schedule youtube" > /dev/null 2>&1
3540 env :
36- PRETALX_TOKEN : ${{ secrets.PRETALX_TOKEN }}
41+ PRETALX_TOKEN : ${{ secrets.PRETALX_TOKEN }}
3742
3843 - name : Transform data
39- run : uv run make transform EXCLUDE="youtube" > /dev/null 2>&1
44+ run : uv run make transform EXCLUDE="schedule youtube" > /dev/null 2>&1
4045
41- - name : Setup SSH
42- uses : webfactory/ssh-agent@v0.9.1
46+ - name : Upload site artifact
47+ uses : actions/upload-pages-artifact@v4
4348 with :
44- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
45-
46- - name : Adjust known_hosts
47- run : ssh-keyscan "static.europython.eu" > ~/.ssh/known_hosts
49+ path : data/public/plc25
4850
49- - name : Deploy
50- run : uv run make deploy FORCE_DEPLOY=true
51+ - name : Deploy to GitHub Pages
52+ id : deployment
53+ uses : actions/deploy-pages@v4
0 commit comments