mirror of
https://github.com/evroon/bracket.git
synced 2026-01-25 22:49:21 -05:00
37 lines
677 B
YAML
37 lines
677 B
YAML
name: docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup yarn
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '18'
|
|
cache: 'yarn'
|
|
cache-dependency-path: frontend/yarn.lock
|
|
|
|
- name: Install npm modules
|
|
run: yarn
|
|
working-directory: docs
|
|
|
|
- name: Build docs
|
|
run: yarn build
|
|
working-directory: docs
|
|
|
|
- name: Deploy to GitHub Pages
|
|
uses: JamesIves/github-pages-deploy-action@v4.4.1
|
|
with:
|
|
branch: gh-pages
|
|
folder: docs/build
|