Added hugo-netlify-build.

This commit is contained in:
moonstar-x 2021-08-11 02:24:36 -05:00
parent 720a48a20a
commit 025269342b

View File

@ -0,0 +1,33 @@
kind: pipeline
type: docker
name: Build and Publish to Netlify
trigger:
event:
include:
- push
branch:
- master
steps:
- name: clone submodules
image: alpine/git
commands:
- git submodule update --init
- name: build
image: klakegg/hugo:ext-alpine-ci
environment:
HUGO_GOOGLEANALYTICS:
from_secret: GA_UA
commands:
- hugo --cleanDestinationDir --minify --verbose
- name: publish
image: lucap/drone-netlify
settings:
site_id:
from_secret: NETLIFY_SITE_ID
token:
from_secret: NETLIFY_TOKEN
path: ./public