AUTO: update RTD data files #97
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: build-deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Install dependencies | |
- name: Install Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install pandoc | |
pip install -r requirements.txt | |
- name: Sphinx build | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GH_USERNAME: ${{ secrets.GH_USERNAME }} | |
run: | | |
cd sphinx && make html | |
- name: GitHub Pages action | |
uses: peaceiris/actions-gh-pages@v3.6.1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: sphinx/build/html |