Added hugo-netlify-build.
This commit is contained in:
parent
720a48a20a
commit
025269342b
33
hugo/hugo-netlify-build.yml
Normal file
33
hugo/hugo-netlify-build.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user