Skip to content

Commit 395de4a

Browse files
authored
Merge pull request #17 from aobolensk/github-pages
2 parents 1ee798b + ee2db44 commit 395de4a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build.yml

+24
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,22 @@ 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: Upload artifact
56+
uses: actions/upload-pages-artifact@v3
57+
with:
58+
path: '.'
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)