Skip to content

Commit

Permalink
fixup! fixup! fixup! 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 be72ddf commit 3b62d7b
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ jobs:
tar -xzf mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz
- name: Build book
run: ./mdbook build

- uses: actions/upload-artifact@v4
with:
name: book-output
path: book/target/

slides:
runs-on: ubuntu-latest
Expand All @@ -45,18 +48,28 @@ jobs:
run: npm install
- name: Build
run: npm run build --base /${{github.event.repository.name}}/ *.md
- uses: actions/upload-artifact@v4
with:
name: slides-output
path: slides/dist/

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

0 comments on commit 3b62d7b

Please sign in to comment.