Bump jinja2 from 3.1.2 to 3.1.3 (#169) #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
name: deploy-github-page | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy-github-page: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip poetry | |
poetry install | |
poetry add pdoc docstring-parser | |
- name: Generate API documentation | |
run: | | |
poetry run pdoc agency \ | |
--template-directory site/pdoc_templates \ | |
--docformat google \ | |
--output-dir site/_api_docs | |
- name: Set up Ruby and Jekyll | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2.2' | |
- name: Build the site | |
env: | |
JEKYLL_ENV: production | |
run: | | |
cd site | |
gem install bundler | |
bundle install | |
bundle exec jekyll build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site/_site | |
cname: createwith.agency |