Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CD] Deploy PDF to GitHub Pages #17

Merged
merged 1 commit into from
Sep 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build

on: [push, pull_request]

permissions:
id-token: write
contents: read
pages: write

jobs:
ubuntu-build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -35,3 +40,22 @@ jobs:
with:
name: pdf-macos
path: '*.pdf'
deploy-to-github-pages:
needs: ubuntu-build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Download PDF artifact
uses: actions/download-artifact@v4
with:
name: pdf-linux
path: ./slides
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading