bigbluebutton-Github/.github/workflows/deploy-docs.yml

49 lines
986 B
YAML
Raw Normal View History

name: Deploy Docs to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- '/v*'
- 'develop'
paths:
- 'docs/'
permissions:
contents: write
concurrency:
group: docs
cancel-in-progress: true
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
# Setup
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: ./docs/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
# Build static docs
- name: Build all versions
run: ./build.sh
- name: Build website
run: yarn build
# Deploy
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build