From b1856fad843f03c95bbc755b77813e58abd2e377 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 Jan 2020 16:44:10 +0100 Subject: [PATCH] add tasks to build docs --- .drone.yml | 30 +++++++++++++++++++++++++++--- .gitignore | 1 + exampleSite/themes/hugo-geekdoc | 1 - 3 files changed, 28 insertions(+), 4 deletions(-) delete mode 120000 exampleSite/themes/hugo-geekdoc diff --git a/.drone.yml b/.drone.yml index aceb99a..2e97d53 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,7 +17,7 @@ steps: - name: test image: klakegg/hugo:0.59.1-ext-alpine commands: - - cd exampleSite/ && hugo-official + - cd exampleSite/ && ln -s ../../. themes/hugo-geekdoc && hugo-official - name: build image: alpine @@ -29,7 +29,7 @@ steps: image: alpine commands: - cd dist/ && sha256sum * > ../sha256sum.txt - - cd ../ ls -lh dist/ + - cd ../ && ls -lh dist/ - cat sha256sum.txt - name: publish @@ -53,8 +53,32 @@ trigger: - refs/tags/** - refs/pull/** +--- +kind: pipeline +name: docs + +platform: + os: linux + arch: amd64 + +steps: +- name: assets + image: alpine + commands: + - mkdir -p exampleSite/themes/hugo-geekdoc/ + - curl -L https://github.com/xoxys/hugo-geekdoc/tarball/master | tar -xz -C exampleSite/themes/hugo-geekdoc/ --strip-components=1 + +- name: test + image: klakegg/hugo:0.59.1-ext-alpine + commands: + - cd exampleSite/ && hugo-official + +trigger: + ref: + - refs/heads/master + --- kind: signature -hmac: 63efa69b91d1f42a9d4b8c4fa8bb49ce3f70f0911cc5a6819bb9f993d721bd1d +hmac: 045e419a618003df0ea0a85de97a8152d88192a7b9e6f5ad8ba2701913e6288f ... diff --git a/.gitignore b/.gitignore index 032f1ed..19fba66 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # local environments .env* node_modules/ +exampleSite/themes/ # auto-generated files layouts/partials/icons-svg-symbols.html diff --git a/exampleSite/themes/hugo-geekdoc b/exampleSite/themes/hugo-geekdoc deleted file mode 120000 index a24d5e8..0000000 --- a/exampleSite/themes/hugo-geekdoc +++ /dev/null @@ -1 +0,0 @@ -../../. \ No newline at end of file