From 209f86d8210897cc7082118182b05ecc2906c43e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 23 May 2021 15:31:52 +0200 Subject: [PATCH] ci: use default branch to test docs build on PR (#37) --- .drone.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ac7ffb6..8b12321 100644 --- a/.drone.yml +++ b/.drone.yml @@ -169,6 +169,23 @@ steps: commands: - mkdir -p exampleSite/themes/hugo-geekblog/ - curl -sSL https://github.com/thegeeklab/hugo-geekblog/releases/latest/download/hugo-geekblog.tar.gz | tar -xz -C exampleSite/themes/hugo-geekblog/ --strip-components=1 + when: + ref: + - refs/heads/master + - refs/tags/** + +- name: assets-master + image: node:lts + commands: + - npm install > /dev/null + - npx gulp default + - mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekblog + environment: + FORCE_COLOR: true + NPM_CONFIG_LOGLEVEL: error + when: + ref: + - refs/pull/** - name: build image: thegeeklab/hugo:0.83.1 @@ -253,6 +270,6 @@ depends_on: --- kind: signature -hmac: 71586de89a7298276422d89c50ee486183ab60f65111308b070b1777b30c927f +hmac: 773432bb466f3c71566f171918419bf0f34335c4bd3d923a005336d4857aaf4c ...