Skip to content

Bump peaceiris/actions-gh-pages from 3 to 4 (#29) #39

Bump peaceiris/actions-gh-pages from 3 to 4 (#29)

Bump peaceiris/actions-gh-pages from 3 to 4 (#29) #39

Workflow file for this run

name: Documentation CI Build
on:
push:
branches-ignore:
- 'gh-pages'
jobs:
Docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Install dependencies
- name: Setup latest Node.js
uses: actions/setup-node@v4
with:
check-latest: true
# Build Docs
- name: Build docs
run: |
npm install
npm run docs:build
env:
BASE_DIR: ${{ startsWith(github.repository, 'hyperion-project') && '/' || '/hyperion.docs/' }}
# Deploy to gh-pages
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: ${{ startsWith(github.repository, 'hyperion-project') && 'docs.hyperion-project.org' || '' }}