Skip to content

Commit

Permalink
Merge pull request #6 from jerus-org/feat-build
Browse files Browse the repository at this point in the history
feat(build): add build job configuration using zola
  • Loading branch information
jerusdp authored Jan 10, 2025
2 parents 6a1a2ee + 6ca9710 commit 5f904c0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- add zola executor configuration file(pr [#5])
- add build job configuration using zola(pr [#6])

### Changed

Expand All @@ -27,3 +28,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#1]: https://github.com/jerus-org/zola-orb/pull/1
[#3]: https://github.com/jerus-org/zola-orb/pull/3
[#5]: https://github.com/jerus-org/zola-orb/pull/5
[#6]: https://github.com/jerus-org/zola-orb/pull/6
41 changes: 41 additions & 0 deletions src/jobs/build.yml
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

0 comments on commit 5f904c0

Please sign in to comment.