diff --git a/hugo/hugo-netlify-build.yml b/hugo/hugo-netlify-build.yml new file mode 100644 index 0000000..13f034c --- /dev/null +++ b/hugo/hugo-netlify-build.yml @@ -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