Merge pull request #299 from tfukaza/297-updates #79
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
# Reference: https://www.poornerd.com/2020/08/31/deploy-nextjs-github-actions.html | |
name: Parse Docstring | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
parse-docstring: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ../harvest | |
pip install docstring-parser | |
- name: Create tmp directory | |
run: | | |
mkdir tmp | |
- name: Run parser | |
run: | | |
python .github/etc/parser.py | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./tmp |