-
Notifications
You must be signed in to change notification settings - Fork 32
55 lines (52 loc) · 1.5 KB
/
gh-pages-pr-workflow.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
52
53
54
55
name: GH-Pages-PR
on:
pull_request:
branches:
- main
paths:
- docs/**
- cypress/**
- harvester_e2e_tests/**
- .github/workflows/**
jobs:
gh-pages:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch gh-pages branch
run: |
git fetch --depth=1 origin gh-pages
- name: Install Hugo
run: |
# Adapted from https://gist.github.com/steinwaywhw/a4cd19cda655b8249d908261a62687f8
curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | \
grep -E 'browser_download_url.*hugo_[0-9]+.*Linux-64bit.tar.gz' | \
cut -d : -f 2,3 | \
tr -d \" | \
xargs -n 1 curl -Lo hugo.tar.gz
tar -xf hugo.tar.gz -C /usr/local/bin/ hugo
- name: Run Hugo
run: |
hugo
working-directory: ./docs/
- name: install requirements
run: |
pip install -r test-requirements.txt
- name: Run pdoc3
run: |
pdoc --html -o . .
mv harvester_e2e_tests/ ../docs/public/backend
working-directory: ./harvester_e2e_tests
- name: install typedoc
run: |
npm install
working-directory: ./cypress/
- name: run typedoc
run: |
./node_modules/.bin/typedoc --options ./typedoc.json
mv docs/ ../docs/public/integration
working-directory: ./cypress/