forked from keptn/lifecycle-toolkit
-
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.
ci: add script to release current documentation status (keptn#1501)
Co-authored-by: Florian Bacher <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Keptn Lifecycle Toolkit Documentation generation | ||
# | ||
# This script supports the release of the latest version of the documentation | ||
# The final files are available under the docs/release folder | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
ROOT_DIR=${SCRIPT_DIR/.github\/scripts/} | ||
DOC_DIR="${ROOT_DIR}docs" | ||
WORK_DIR=${DOC_DIR}/release | ||
|
||
## Create the working folder | ||
mkdir -p $WORK_DIR | ||
|
||
cd $WORK_DIR | ||
|
||
## Download the latest status of the main documentation | ||
git clone https://github.com/keptn/lifecycle-toolkit.git | ||
cd lifecycle-toolkit | ||
git checkout page | ||
git pull | ||
|
||
## Rewrite with the current content | ||
cp -r "${DOC_DIR}/content/en/docs" ./docs/content/en | ||
|
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