Skip to content

Enhancements to Spice Reference Section #1607

Enhancements to Spice Reference Section

Enhancements to Spice Reference Section #1607

name: build_and_publish
on:
push:
branches:
- trunk
tags:
- v*
pull_request:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
working-directory: spiceaidocs
run: npm install
- name: Build website
working-directory: spiceaidocs
run: npm run build
- name: Deploy
if: ${{ github.event_name != 'pull_request' && startswith(github.ref, 'refs/tags/v') }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./spiceaidocs/build
cname: docs.spiceai.org