Skip to content

Commit 6ff8509

Browse files
committed
deployment should work
1 parent 5d15b2f commit 6ff8509

File tree

3 files changed

+33
-29
lines changed

3 files changed

+33
-29
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,51 @@ name: Deploy to static server
33
on:
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+
1220
jobs:
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

.github/workflows/tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Tests
22

3-
on: [push, pull_request, workflow_dispatch]
3+
# Tests don't work yet
4+
on: [workflow_dispatch]
45

56
jobs:
67
tests:

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)