Skip to content

Commit

Permalink
Merge pull request #17 from aobolensk/github-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
allnes authored Sep 21, 2024
2 parents 1ee798b + ee2db44 commit 395de4a
Showing 1 changed file with 24 additions and 0 deletions.
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

0 comments on commit 395de4a

Please sign in to comment.