Add tasks flow

This commit is contained in:
Marius Stanca 2019-11-26 23:54:52 +02:00
parent 75133059da
commit fac624bd93
No known key found for this signature in database
GPG Key ID: 3F18F3CF10AD6E8D
3 changed files with 11 additions and 2 deletions

View File

@ -4,8 +4,7 @@ python:
- "3.6"
script:
- cp README.md docs/index.md
- mkdocs build
- invoke build
deploy:
provider: pages

View File

@ -1,2 +1,3 @@
mkdocs==1.0.4
mkdocs-material==4.5.0
invoke

9
tasks.py Normal file
View File

@ -0,0 +1,9 @@
import os
from invoke import task, call
@task
def build(c):
"""Build the website"""
c.run("cp README.md docs/index.md")
c.run("mkdocs build")