2021-08-10 20:52:28 -05:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build and Publish to Netlify
|
|
|
|
|
|
|
|
trigger:
|
2021-08-11 00:55:41 -05:00
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- push
|
2021-08-10 20:52:28 -05:00
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: squidfunk/mkdocs-material
|
2021-08-11 00:55:41 -05:00
|
|
|
environment:
|
|
|
|
GA_UA:
|
|
|
|
from_secret: GA_UA
|
2021-08-10 20:52:28 -05:00
|
|
|
commands:
|
|
|
|
- mkdocs build --clean
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: lucap/drone-netlify
|
|
|
|
settings:
|
|
|
|
site_id:
|
|
|
|
from_secret: NETLIFY_SITE_ID
|
|
|
|
token:
|
|
|
|
from_secret: NETLIFY_TOKEN
|
|
|
|
path: ./site
|