Skip to content

Allow building all the slides at once #2

Allow building all the slides at once

Allow building all the slides at once #2

Workflow file for this run

# Based on: https://sli.dev/guide/hosting
on:
push:
branches:
- main
- gh-pages-action
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
slides:
runs-on: ubuntu-latest
defaults:
run:
working-directory: slides/
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build --base /${{github.event.repository.name}}/ *.md
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: slides
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4