Skip to content

ensure the workflow publishes to the subfolder #2

ensure the workflow publishes to the subfolder

ensure the workflow publishes to the subfolder #2

Workflow file for this run

name: Build and Deploy Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run build:docs
- name: Deploy to 'docs' subfolder of 'gh-pages' branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs
clean: true
target-folder: docs