File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Documentation
2
2
on :
3
3
push :
4
- branches :
5
- - main
4
+ tags :
5
+ - v*
6
6
7
7
jobs :
8
8
docs :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v3
12
12
with :
13
13
fetch-depth : 0
14
14
lfs : true
15
15
- name : Install Python
16
16
uses : actions/setup-python@v2
17
17
with :
18
- python-version : ' 3.x'
18
+ python-version : ' 3.10'
19
+ - name : Install pipenv
20
+ uses : dschep/install-pipenv-action@v1
21
+ - name : Install dependencies
22
+ run : pipenv install --dev
19
23
- uses : ammaraskar/sphinx-action@master
20
24
with :
21
- pre-build-command : " pip install camel-converter[pydantic] && pip install sphinx_rtd_theme && sphinx-apidoc -f -o docs meilisearch/"
25
+ pre-build-command : " pip install sphinx_rtd_theme && sphinx-apidoc -f -o docs meilisearch/"
22
26
docs-folder : " docs/"
23
27
- name : Deploy
24
28
uses : peaceiris/actions-gh-pages@v3
25
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }}
29
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/test_branch ' }}
26
30
with :
27
31
github_token : ${{ secrets.GITHUB_TOKEN }}
28
32
publish_dir : docs/_build/html
You can’t perform that action at this time.
0 commit comments