add tasks to build docs

This commit is contained in:
Robert Kaussow 2020-01-12 16:44:10 +01:00
parent 3205a769b0
commit b1856fad84
3 changed files with 28 additions and 4 deletions

View File

@ -17,7 +17,7 @@ steps:
- name: test - name: test
image: klakegg/hugo:0.59.1-ext-alpine image: klakegg/hugo:0.59.1-ext-alpine
commands: commands:
- cd exampleSite/ && hugo-official - cd exampleSite/ && ln -s ../../. themes/hugo-geekdoc && hugo-official
- name: build - name: build
image: alpine image: alpine
@ -29,7 +29,7 @@ steps:
image: alpine image: alpine
commands: commands:
- cd dist/ && sha256sum * > ../sha256sum.txt - cd dist/ && sha256sum * > ../sha256sum.txt
- cd ../ ls -lh dist/ - cd ../ && ls -lh dist/
- cat sha256sum.txt - cat sha256sum.txt
- name: publish - name: publish
@ -53,8 +53,32 @@ trigger:
- refs/tags/** - refs/tags/**
- refs/pull/** - 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 kind: signature
hmac: 63efa69b91d1f42a9d4b8c4fa8bb49ce3f70f0911cc5a6819bb9f993d721bd1d hmac: 045e419a618003df0ea0a85de97a8152d88192a7b9e6f5ad8ba2701913e6288f
... ...

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# local environments # local environments
.env* .env*
node_modules/ node_modules/
exampleSite/themes/
# auto-generated files # auto-generated files
layouts/partials/icons-svg-symbols.html layouts/partials/icons-svg-symbols.html

View File

@ -1 +0,0 @@
../../.