forked from evmos/evmos
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 897 Bytes
/
build-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Docs build
# This workflow runs when a PR is labeled with `docs`
# This will check if the docs build successfully by running `npm run build`
on:
pull_request:
push:
branches:
- main
- release/*
jobs:
check-docs-build:
name: Check docs build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: technote-space/[email protected]
with:
PATTERNS: |
docs/**/*.sh
docs/**/*.py
docs/**/*.md
docs/**/*.png
docs/**/*.jpg
docs/**/*.json
docs/**/*.js
x/**/*.md
- name: Install dependencies and build docs 🧱
run: |
make build-docs
# Check only if there are differences in the source code
if: env.GIT_DIFF