Skip to content

Commit 86ebd61

Browse files
author
kumar
committed
fixes for review comments
1 parent 101cfad commit 86ebd61

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/documentation.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
name: Documentation
22
on:
33
push:
4-
branches:
5-
- main
4+
tags:
5+
- v*
66

77
jobs:
88
docs:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
1414
lfs: true
1515
- name: Install Python
1616
uses: actions/setup-python@v2
1717
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
1923
- uses: ammaraskar/sphinx-action@master
2024
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/"
2226
docs-folder: "docs/"
2327
- name: Deploy
2428
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' }}
2630
with:
2731
github_token: ${{ secrets.GITHUB_TOKEN }}
2832
publish_dir: docs/_build/html

0 commit comments

Comments
 (0)