-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from jerus-org/feat-build
feat(build): add build job configuration using zola
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
description: > | ||
Build public site using zola. | ||
executor: | ||
name: zola | ||
zola_version: <<parameters.zola_version>> | ||
|
||
parameters: | ||
zola_version: | ||
type: string | ||
description: "The of zola to use" | ||
update_submodules: | ||
type: boolean | ||
default: true | ||
description: "If true, the git submodules will be updated." | ||
|
||
steps: | ||
- checkout | ||
|
||
- when: | ||
condition: << parameters.update_submodules >> | ||
steps: | ||
- run: | ||
name: Sync git submodules | ||
command: | | ||
git submodule sync | ||
- run: | ||
name: Update git submodules | ||
command: | | ||
git submodule update --init | ||
- run: | ||
name: Confirm zola version | ||
command: | | ||
zola --version | ||
- run: | ||
name: Build site | ||
command: | | ||
zola build |