Added configuration options

This commit is contained in:
Marcin Grzejszczak
2019-04-29 18:48:19 +04:00
parent a5ea61295e
commit cb125e972f
3 changed files with 9 additions and 5 deletions

View File

@@ -111,4 +111,6 @@ $ ./mvnw clean deploy -Pguides
what will happen is that for GA project versions, we will clone `gs-guide1`, `gs-guide2` and `gs-guide3` and update their contents with the ones being under your `guides` project.
You can skip this by either not adding the `guides` profile, or passing the `-DskipGuides` system property when the profile is turned on.
You can skip this by either not adding the `guides` profile, or passing the `-DskipGuides` system property when the profile is turned on.
You can configure the project version passed to guides via the `guides-project.version` (defaults to `${project.version}`). The phase at which guides get updated can be configured by `guides-update.phase` (defaults to `deploy`).

View File

@@ -57,8 +57,8 @@ function iterate_over_guides() {
function commit_and_push_new_guide_contents() {
"${GIT_BIN}" add .
"${GIT_BIN}" commit -m "Updating guides"
"${GIT_BIN}" push origin master
"${GIT_BIN}" commit -m "Updating guides" || echo "Nothing to commit"
"${GIT_BIN}" push origin master || echo "Nothing to push"
}
function copy_new_guide() {