From c089643bcb8d9b3ee4751d108d73cfbd13d8786a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 2 Mar 2021 22:45:05 +0100 Subject: [PATCH] ci: user master branch to test docs build on PR --- .drone.yml | 19 ++++++++++++++++++- assets/sprites/geekdoc.svg | 1 + exampleSite/data/sprites/geekdoc.json | 27 +++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 assets/sprites/geekdoc.svg create mode 100644 exampleSite/data/sprites/geekdoc.json diff --git a/.drone.yml b/.drone.yml index 35aa3d6..785a15b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -169,6 +169,23 @@ steps: commands: - mkdir -p exampleSite/themes/hugo-geekdoc/ - curl -sSL https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C exampleSite/themes/hugo-geekdoc/ --strip-components=1 + when: + ref: + - refs/heads/master + - refs/tags/** + +- name: assets + image: node:lts + commands: + - npm install > /dev/null + - npx gulp default + - mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc + environment: + FORCE_COLOR: true + NPM_CONFIG_LOGLEVEL: error + when: + ref: + - refs/pull/** - name: build image: klakegg/hugo:0.80.0-ext-alpine-ci @@ -252,6 +269,6 @@ depends_on: --- kind: signature -hmac: 0e3b40841b005c43e743091e0457d4d28e376442b877e81ecf3576093d78ab33 +hmac: 838fa95a0e12d61deaaa3620f004919c1f6e73eba88073c0ffdf96b91ecd0f3b ... diff --git a/assets/sprites/geekdoc.svg b/assets/sprites/geekdoc.svg new file mode 100644 index 0000000..0500740 --- /dev/null +++ b/assets/sprites/geekdoc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/exampleSite/data/sprites/geekdoc.json b/exampleSite/data/sprites/geekdoc.json new file mode 100644 index 0000000..3e4b4a2 --- /dev/null +++ b/exampleSite/data/sprites/geekdoc.json @@ -0,0 +1,27 @@ +[ + "arrow_back", + "arrow_left_alt", + "arrow_right_alt", + "bitbucket", + "bookmark", + "code", + "date", + "download", + "email", + "git", + "github", + "gitlab", + "heart", + "keyborad_arrow_down", + "keyborad_arrow_left", + "keyborad_arrow_right", + "link", + "menu", + "notification", + "path", + "person", + "search", + "shield", + "tags", + "telescope" +] \ No newline at end of file