mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 23:08:17 +01:00
31 lines
864 B
YAML
31 lines
864 B
YAML
version: 2.1
|
|
jobs:
|
|
build-check:
|
|
parameters:
|
|
example-site-path:
|
|
type: string
|
|
theme-path:
|
|
type: string
|
|
docker:
|
|
- image: cibuilds/hugo:0.62
|
|
working_directory: ~/LoveIt
|
|
steps:
|
|
- checkout
|
|
- run: git submodule sync
|
|
- run: git submodule update --init
|
|
- run:
|
|
command: |
|
|
cd << parameters.example-site-path >> && pwd
|
|
HUGO_ENV=production hugo --themesDir << parameters.theme-path >> -v --gc
|
|
htmlproofer public --check-html --allow-hash-href --empty-alt-ignore --disable-external
|
|
workflows:
|
|
build-check-exampleSite:
|
|
jobs:
|
|
- build-check:
|
|
example-site-path: exampleSite
|
|
theme-path: ../..
|
|
build-check-exampleSite-zh:
|
|
jobs:
|
|
- build-check:
|
|
example-site-path: exampleSite/zh
|
|
theme-path: ../../..
|