DuckDB data connector documentation #412
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |