Skip to content

Bump jinja2 from 3.1.2 to 3.1.3 in /examples/demo (#170) #78

Bump jinja2 from 3.1.2 to 3.1.3 in /examples/demo (#170)

Bump jinja2 from 3.1.2 to 3.1.3 in /examples/demo (#170) #78

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