Skip to content

Commit da40f65

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 da40f65

File tree

17 files changed

+90
-0
lines changed

17 files changed

+90
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 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
@@ -20,6 +25,10 @@ jobs:
2025
with:
2126
name: pdf-linux
2227
path: '*.pdf'
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: html
31+
path: '*.html'
2332
macos-build:
2433
runs-on: macos-latest
2534
steps:
@@ -35,3 +44,27 @@ jobs:
3544
with:
3645
name: pdf-macos
3746
path: '*.pdf'
47+
deploy-to-github-pages:
48+
needs: ubuntu-build
49+
runs-on: ubuntu-latest
50+
# if: github.ref == 'refs/heads/main'
51+
steps:
52+
- name: Setup Pages
53+
uses: actions/configure-pages@v5
54+
- name: Download PDF artifact
55+
uses: actions/download-artifact@v4
56+
with:
57+
name: pdf-linux
58+
path: ./slides
59+
- name: Download PDF artifact
60+
uses: actions/download-artifact@v4
61+
with:
62+
name: html
63+
path: ./
64+
- name: Upload artifact
65+
uses: actions/upload-pages-artifact@v3
66+
with:
67+
path: '.'
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
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-intro.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)