Merge pull request #15 from BLKSerene/update_translate #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Docs dev | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
sudo apt install pandoc | |
python -m pip install --upgrade pip | |
pip install boto smart_open sphinx sphinx-rtd-theme pythainlp | |
pip install -e .[full] | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Build sphinx documentation | |
run: | | |
cd docs && make html | |
cd .. | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' |