-
Notifications
You must be signed in to change notification settings - Fork 3
142 lines (141 loc) · 4.52 KB
/
slides.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Slides build
on: [push,workflow_dispatch]
jobs:
build_index:
runs-on: ubuntu-latest
steps:
# Checkout our files
- uses: actions/checkout@v2
- run: mkdir output && cp -r images output/
# Just a test for example build.
- uses: docker://pandoc/latex:latest
with:
args: >- # allows you to break string into multiple lines
-t revealjs -s src/test_slides.md -o output/test_slides.html
-V theme=moon -V minScale=0.1 -V width='90%' -V height=900
# Build index
- uses: docker://pandoc/latex:latest
with:
args: -s -o output/index.html -f markdown src/index.md
- uses: actions/cache@v2
id: cache-html
with:
path: output/*
key: ${{ github.sha }}-index
build_slides:
strategy:
max-parallel: 1 # needed for the cache mechanism to work
matrix:
slides:
- 00_Course_Introduction
- 00_CNES_Short_Course_Introduction
- 00_SDD_DE_Course_Introduction
- 01_Introduction_Big_Data
- 02_Big_Data_Platforms
- 03_Spark_Introduction
- 10_Cloud_Computing
- 11_ContainersAndDocker
- 12_OrchestrationKubernetes
- 13_Dask_On_Cloud
- 14_ObjectStorage
- 21_Python_Data_Processing
- 22_Dask_Pangeo
- 23_Distributed_Processing
- 24_Large_Datasets
- 25_Dask
- 30_Evaluation
runs-on: ubuntu-latest
needs: [build_index]
steps:
# Checkout our files
- uses: actions/checkout@v2
- run: mkdir output
# Build slidedeck
- uses: docker://pandoc/latex:latest
with:
args: >- # allows you to break string into multiple lines
-t revealjs -s src/${{ matrix.slides }}.md -o output/${{ matrix.slides }}.html
-V theme=solarized -V minScale=0.1 -V width=1800 -V height=900
-V background-image=images/background-logo.png
- uses: actions/cache@v2
id: cache-html
with:
path: output/*
key: ${{ github.sha }}-${{ matrix.slides }}
restore-keys: ${{ github.sha }}-
build_slides_pdf:
strategy:
max-parallel: 1 # needed for the cache mechanism to work
matrix:
slides:
- 00_Course_Introduction
- 00_CNES_Short_Course_Introduction
- 00_SDD_DE_Course_Introduction
- 01_Introduction_Big_Data
- 02_Big_Data_Platforms
- 03_Spark_Introduction
- 10_Cloud_Computing
- 11_ContainersAndDocker
- 12_OrchestrationKubernetes
- 13_Dask_On_Cloud
- 14_ObjectStorage
- 21_Python_Data_Processing
- 22_Dask_Pangeo
- 23_Distributed_Processing
- 24_Large_Datasets
- 25_Dask
- 30_Evaluation
runs-on: ubuntu-latest
steps:
# Checkout our files
- uses: actions/checkout@v2
- run: mkdir output_pdf && cp -r images output_pdf/
# Build slidedeck
- uses: docker://pandoc/latex:latest
with:
args: >- # allows you to break string into multiple lines
-t beamer -s src/${{ matrix.slides }}.md -o output_pdf/${{ matrix.slides }}.pdf
-V theme:Warsaw --verbose
- uses: actions/cache@v2
id: cache-pdf
with:
path: output_pdf/*
key: pdf-${{ github.sha }}-${{ matrix.slides }}
restore-keys: pdf-${{ github.sha }}-
deploy:
runs-on: ubuntu-latest
needs: [build_slides]
steps:
# Checkout our files
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache-html
with:
path: output/*
key: ${{ github.sha }}-deploy
restore-keys: ${{ github.sha }}-
- uses: actions/upload-artifact@master
with:
name: output
path: output
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: output # The folder the action should deploy.
deploy_pdf:
runs-on: ubuntu-latest
needs: [build_slides_pdf]
steps:
# Checkout our files
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache-pdf
with:
path: output_pdf/*
key: pdf-${{ github.sha }}-deploy
restore-keys: pdf-${{ github.sha }}-
- uses: actions/upload-artifact@master
with:
name: output_pdf
path: output_pdf