Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

deploy-docs

deploy-docs #1945

Workflow file for this run

name: Build and Deploy Docs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
workflow_dispatch:
repository_dispatch:
types: [deploy-docs]
push:
branches:
- "site"
pull_request:
jobs:
build:
name: Build using Node
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: npm
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: sudo gem install sass -v 3.4.24
- run: npm ci
- run: npm run docs
- run: npm run build:ci
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/site'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: master