Skip to content

Merge pull request #9 from baggiponte/dependabot/npm_and_yarn/axios-a… #11

Merge pull request #9 from baggiponte/dependabot/npm_and_yarn/axios-a…

Merge pull request #9 from baggiponte/dependabot/npm_and_yarn/axios-a… #11

Workflow file for this run

name: Deploy Slideshow to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- .github/workflows/deploy.yml
- slides.md
- public
- package.json
- package-lock.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.tool-versions'
- name: Install dependencies
run: npm install
- name: Build HTML
run: npx slidev build --base=/pbg-polars
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2