Skip to content

Commit f9398d0

Browse files
committed
[CD] Deploy slides to GitHub Pages
Deploy built PDF slides to GitHub Pages to make them accessible on the website
1 parent affa6de commit f9398d0

File tree

17 files changed

+86
-0
lines changed

17 files changed

+86
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build
22

33
on: [push, pull_request]
44

5+
permissions:
6+
id-token: write
7+
contents: read
8+
pages: write
9+
510
jobs:
611
ubuntu-build:
712
runs-on: ubuntu-latest
@@ -35,3 +40,27 @@ jobs:
3540
with:
3641
name: pdf-macos
3742
path: '*.pdf'
43+
deploy-to-github-pages:
44+
needs: ubuntu-build
45+
runs-on: ubuntu-latest
46+
# if: github.ref == 'refs/heads/main'
47+
steps:
48+
- name: Setup Pages
49+
uses: actions/configure-pages@v5
50+
- name: Download PDF artifact
51+
uses: actions/download-artifact@v4
52+
with:
53+
name: pdf-linux
54+
path: ./slides
55+
- name: Download PDF artifact
56+
uses: actions/download-artifact@v4
57+
with:
58+
name: html
59+
path: ./
60+
- name: Upload artifact
61+
uses: actions/upload-pages-artifact@v3
62+
with:
63+
path: '.'
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v4
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>ITLab slides</title>
7+
<style>
8+
body {
9+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
10+
color: #333;
11+
background-color: #f9f9f9;
12+
margin: 20px;
13+
padding: 20px;
14+
}
15+
h1 {
16+
font-size: 2em;
17+
margin-bottom: 0.5em;
18+
color: #333;
19+
}
20+
ol {
21+
list-style-type: decimal;
22+
margin-left: 40px;
23+
}
24+
li {
25+
font-size: 1.2em;
26+
margin-bottom: 0.5em;
27+
}
28+
a {
29+
color: #4183c4;
30+
text-decoration: none;
31+
}
32+
a:hover {
33+
text-decoration: underline;
34+
}
35+
/* Orderedlist theme-inspired header */
36+
header {
37+
background-color: #4183c4;
38+
padding: 10px 0;
39+
color: white;
40+
text-align: center;
41+
}
42+
</style>
43+
</head>
44+
<body>
45+
<header>
46+
<h1>ITLab slides</h1>
47+
</header>
48+
<ul>
49+
<li><a href="https://embedded-dev-research.github.io/itlab_slides/slides/00-into.pdf" target="_blank">00: Introduction</a></li>
50+
<li><a href="https://embedded-dev-research.github.io/itlab_slides/slides/01-git.pdf" target="_blank">01: Git</a></li>
51+
<li><a href="https://embedded-dev-research.github.io/itlab_slides/slides/02-cmake.pdf" target="_blank">02: CMake</a></li>
52+
<li><a href="https://embedded-dev-research.github.io/itlab_slides/slides/03-linux.pdf" target="_blank">03: Linux</a></li>
53+
<li><a href="https://embedded-dev-research.github.io/itlab_slides/slides/04-cpp-project-structure.pdf" target="_blank">04: C++ project structure</a></li>
54+
<li><a href="https://embedded-dev-research.github.io/itlab_slides/slides/05-embedded-arm.pdf" target="_blank">05: Embedded architectures (ARM)</a></li>
55+
</ul>
56+
</body>
57+
</html>

0 commit comments

Comments
 (0)