Skip to content

Merge pull request #82 from ten-protocol/update-documentation-structure #72

Merge pull request #82 from ten-protocol/update-documentation-structure

Merge pull request #82 from ten-protocol/update-documentation-structure #72

name: Build and Deploy Docusaurus to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main # or the branch you want to trigger the build from
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18 # or the version you prefer
- name: Install dependencies
run: |
npm ci
- name: Build Docusaurus site
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build # Docusaurus builds to this directory by default
cname: docs.ten.xyz