-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (49 loc) · 1.5 KB
/
test-deploy.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Based on https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
# At times doesn't fail, even when deployment is broken
name: Test deployment of documentation
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: pip install docspec_python==2.2.1 git+https://github.com/nonprofittechy/pydoc-markdown@escape-brackets
- uses: actions/checkout@v3
with:
path: docs
- uses: actions/checkout@v3
with:
repository: SuffolkLITLab/docassemble-AssemblyLine
path: docassemble-AssemblyLine
- uses: actions/checkout@v3
with:
repository: SuffolkLITLab/docassemble-AssemblyLine
path: FormFyxer
- uses: actions/checkout@v3
with:
repository: SuffolkLITLab/docassemble-ALToolbox
path: docassemble-ALToolbox
- uses: actions/checkout@v3
with:
repository: SuffolkLITLab/docassemble-EFSPIntegration
path: docassemble-EFSPIntegration
- name: Go to Docs directory
run: |
cd docs
pydoc-markdown
- uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Test build
run: |
cd docs
npm ci
npm run build