Skip to content

Upgrade actions in GH pages deploy workflow #191

Upgrade actions in GH pages deploy workflow

Upgrade actions in GH pages deploy workflow #191

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main # TODO: switch to tags
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
- name: Install
run: npm ci
- name: Build
run: npm run example:build -- --base ./
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/build