howtuwu/.woodpecker.yml
Anthony Wang 837aa32c97
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Cache repository to speed up CI runtime
2022-02-13 11:15:22 -06:00

28 lines
659 B
YAML

clone:
git:
image: bash
commands:
- mkdir -p /var/lib/woodpecker-agent/Ta180m
- cd /var/lib/woodpecker-agent/Ta180m
- if [ -d howtuwu ]; then
- cd howtuwu
- git pull
- git submodule update
- else
- git clone --recursive https://git.exozy.me/Ta180m/howtuwu.git
- fi
pipeline:
build-theme:
image: bash
commands:
- cd /var/lib/woodpecker-agent/Ta180m/howtuwu/themes/hugo-geekdoc
- npm install
- npm run build
build:
image: bash
commands:
- cd /var/lib/woodpecker-agent/Ta180m/howtuwu
- hugo --minify --destination /srv/http/pages/howtuwu