Skip to content

Add documentation for switching to Groq PlayAI TTS #530

Add documentation for switching to Groq PlayAI TTS

Add documentation for switching to Groq PlayAI TTS #530

Workflow file for this run

name: Deploy Docusaurus to GitHub Pages
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: doc/package-lock.json
- name: Install dependencies
run: |
cd doc
npm ci
- name: Build Docusaurus
run: |
cd doc
npm run build
- name: Prepare deployment files
run: |
mkdir -p _site
# Copy all files and directories except specific ones
for item in *; do
if [ "$item" != "_site" ] && [ "$item" != "doc" ] && [ "$item" != ".git" ] && [ "$item" != ".github" ] && [ "$item" != "node_modules" ]; then
cp -r "$item" _site/ 2>/dev/null || :
fi
done
# Copy hidden files
cp .htaccess _site/ 2>/dev/null || :
cp robots.txt _site/ 2>/dev/null || :
cp sitemap.xml _site/ 2>/dev/null || :
# Copy Docusaurus build
mkdir -p _site/docs
cp -r doc/build/* _site/docs/
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
deploy:
needs: build
runs-on: ubuntu-22.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4