Merge pull request #883 from uclahs-cds/czhu-fix-docs #362
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: Docs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v2 | |
- name: Create a requirement.txt | |
run: | | |
echo 'mkdocs==1.2.3' > requirements.txt | |
echo 'jinja2==3.0.0' >> requirements.txt | |
echo 'mkdocstrings==0.16.2' >> requirements.txt | |
echo 'mkdocs-macros-plugin==0.6.0' >> requirements.txt | |
echo 'matplotlib==3.3.1' >> requirements.txt | |
echo 'regex==2023.6.3' >> requirements.txt | |
echo '.' >> requirements.txt | |
- name: Deploy docs | |
uses: zhuchcn/mkdocs-deploy-gh-pages@nomaterial | |
env: | |
GITHUB_TOKEN: ${{ secrets.DEPLOY_DOCS }} | |
CONFIG_FILE: mkdocs.yml |