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