mirror of
https://github.com/evroon/bracket.git
synced 2026-04-20 23:37:02 -04:00
39 lines
704 B
YAML
39 lines
704 B
YAML
name: docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup yarn
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'yarn'
|
|
cache-dependency-path: docs/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.7.1
|
|
with:
|
|
branch: gh-pages
|
|
folder: docs/out
|