twenty/.github/workflows/ci-docs.yaml

27 lines
696 B
YAML
Raw Normal View History

name: CI Docs
on:
push:
branches:
- main
pull_request_target:
jobs:
docs-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-07-05 10:24:46 +03:00
if: github.event_name == 'push'
with:
2023-07-05 01:04:05 +03:00
ref: ${{ github.head_ref || github.ref_name }}
2023-07-05 10:24:46 +03:00
- uses: actions/checkout@v3
if: github.event_name == 'pull_request_target'
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Docs / Install Dependencies
run: cd docs && yarn
- name: Docs / Build Documentation
run: cd docs && yarn build