Added mkdocs-generic-netlify-build.
This commit is contained in:
parent
c89e7714f5
commit
ddcbd4b6a2
29
mkdocs/mkdocs-generic-netlify-build.yml
Normal file
29
mkdocs/mkdocs-generic-netlify-build.yml
Normal file
@ -0,0 +1,29 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Build and Publish to Netlify
|
||||
|
||||
trigger:
|
||||
event:
|
||||
include:
|
||||
- push
|
||||
branch:
|
||||
- master
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: python
|
||||
environment:
|
||||
GA_UA:
|
||||
from_secret: GA_UA
|
||||
commands:
|
||||
- pip install -r requirements.txt
|
||||
- mkdocs build --clean
|
||||
|
||||
- name: publish
|
||||
image: lucap/drone-netlify
|
||||
settings:
|
||||
site_id:
|
||||
from_secret: NETLIFY_SITE_ID
|
||||
token:
|
||||
from_secret: NETLIFY_TOKEN
|
||||
path: ./site
|
Loading…
Reference in New Issue
Block a user