Skip to content

Commit 8cf119b

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 8cf119b

File tree

17 files changed

+88
-0
lines changed

17 files changed

+88
-0
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
with:
2121
name: pdf-linux
2222
path: '*.pdf'
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
name: html
26+
path: '*.html'
2327
macos-build:
2428
runs-on: macos-latest
2529
steps:
@@ -35,3 +39,30 @@ jobs:
3539
with:
3640
name: pdf-macos
3741
path: '*.pdf'
42+
deploy-to-github-pages:
43+
needs: ubuntu-build
44+
runs-on: ubuntu-latest
45+
permissions:
46+
id-token: write
47+
pages: write
48+
# if: github.ref == 'refs/heads/main'
49+
steps:
50+
- name: Setup Pages
51+
uses: actions/configure-pages@v5
52+
- name: Download PDF artifact
53+
uses: actions/download-artifact@v4
54+
with:
55+
name: pdf-linux
56+
path: ./slides
57+
- name: Download PDF artifact
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: html
61+
path: ./
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: '.'
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
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.

0 commit comments

Comments
 (0)