Skip to content

Merge pull request #156 from trifectatechfoundation/gh-pages #1

Merge pull request #156 from trifectatechfoundation/gh-pages

Merge pull request #156 from trifectatechfoundation/gh-pages #1

Workflow file for this run

name: Build and deploy
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'slides/package-lock.json'
- run: npm ci
working-directory: slides
- run: ./build.sh
working-directory: slides
- uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: '0.4.52'
- run: mdbook build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: public/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4