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