Release 2.1.0 #14
Workflow file for this run
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 publish | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'info' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
tags: | |
description: 'Testing' | |
required: false | |
type: boolean | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: { python-version: "3.8" } | |
- name: Install dependencies | |
run: | | |
pip install -U poetry | |
poetry install | |
- name: Build documentation | |
run: | | |
poetry run novella -d docs | |
- name: Publish docs | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: docs/_site | |
ssh-key: ${{ secrets.DEPLOY_KEY }} |