modular-avatar/.github/workflows/build-test-docs.yml

27 lines
525 B
YAML
Raw Normal View History

2022-09-10 08:18:35 +08:00
name: Build documentation
2022-09-09 11:52:06 +08:00
on:
2022-09-10 08:18:35 +08:00
pull_request:
workflow_call:
2022-09-09 11:52:06 +08:00
jobs:
2022-09-10 08:18:35 +08:00
build-docs:
name: Build documentation
2022-09-09 11:52:06 +08:00
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/checkout@v3 # check out this repo
- name: Build docs
run: |
cd docs
2022-09-10 08:24:37 +08:00
yarn install
yarn build
2022-09-10 08:18:35 +08:00
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: docs
path: docs/build