-
Notifications
You must be signed in to change notification settings - Fork 356
42 lines (40 loc) · 1.03 KB
/
adapter_docs_build.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
name: Build Adapter Docs
on:
push:
branches: [ main ]
paths:
- '.github/workflows/**'
- 'docs/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install
run: |
pip install setuptools==57.4.0
pip install torch
pip install recommonmark==0.7.1
pip install -e .[docs]
pip install Jinja2==2.11.3
pip install markupsafe==2.0.1
- name: Build
run: |
cd docs && make html-multi-version && cd ..
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: "Adapter-Hub-Bert"
user_email: "---"
publish_dir: ./docs/_build/html
publish_branch: gh-pages
force_orphan: true
cname: docs.adapterhub.ml