Skip to content

Commit

Permalink
fixup! fixup! Allow building all the slides at once
Browse files Browse the repository at this point in the history
  • Loading branch information
tdittr committed Aug 12, 2024
1 parent ba84674 commit 7406ef4
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ concurrency:
cancel-in-progress: false

jobs:
book:
runs-on: ubuntu-latest
defaults:
run:
working-directory: book
steps:
- uses: actions/checkout@v4
- name: Install mdbook
run: |
wget "https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz"
tar -xzf mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz
- name: Build book
run: mdbook-v0.4.40-x86_64-unknown-linux-gnu/mdbook build


slides:
runs-on: ubuntu-latest
defaults:
Expand All @@ -30,12 +45,25 @@ jobs:
run: npm install
- name: Build
run: npm run build --base /${{github.event.repository.name}}/ *.md

upload:
needs:
- book
- slides
runs-on: ubuntu-latest
steps:
- name: Move stuff into single folder
run: |
mkdir -p public
mv slides/dist/* public/
mv book/target/* public/
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: slides/dist
path: public/

deploy:
environment:
name: github-pages
Expand Down

0 comments on commit 7406ef4

Please sign in to comment.