-
Notifications
You must be signed in to change notification settings - Fork 55
44 lines (37 loc) · 997 Bytes
/
render-exercises.yml
File metadata and controls
44 lines (37 loc) · 997 Bytes
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
name: "Render Exercises"
# Runs whenever workshop content or scenario steps change, and on demand.
on:
push:
branches: [main]
paths:
- "workshop-content/**"
- "scenarios/**"
pull_request:
branches: [main]
paths:
- "workshop-content/**"
- "scenarios/**"
workflow_dispatch:
jobs:
render:
name: Render all scenarios
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Validate all scenarios
run: python scripts/validate-scenario.py --all
- name: Render all scenarios
run: python scripts/render-scenario.py --all rendered/
- name: Upload rendered exercises
uses: actions/upload-artifact@v4
with:
name: rendered-exercises
path: rendered/
retention-days: 30