forked from EuroPython/programapi
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 1.67 KB
/
deploy.yml
File metadata and controls
72 lines (60 loc) · 1.67 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Deploy to static server
on:
push:
branches:
- "plc2025"
schedule:
- cron: "0 0 * * *" # every day at midnight
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Python 3
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Download data
run: uv run make download EXCLUDE="schedule youtube" > /dev/null 2>&1
env:
PRETALX_TOKEN: ${{ secrets.PRETALX_TOKEN }}
- name: Transform data
run: uv run make transform EXCLUDE="schedule youtube" > /dev/null 2>&1
- name: Create index.html
run: |
cat > data/public/plc25/index.html <<'EOF'
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PyLadiesCon 2025 Program Data</title>
</head>
<body>
<h1>PyLadiesCon 2025 Program Data</h1>
<ul>
<li><a href="/sessions.json">sessions.json</a></li>
<li><a href="/speakers.json">speakers.json</a></li>
</ul>
</body>
</html>
EOF
- name: Upload site artifact
uses: actions/upload-pages-artifact@v4
with:
path: data/public/plc25
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4