Skip to content

Commit

Permalink
ci: add script to release current documentation status (keptn#1501)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bacher <[email protected]>
  • Loading branch information
thisthat and bacherfl authored Jun 12, 2023
1 parent 59cdfc8 commit 0758565
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/scripts/generate-latest-doc.sh
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

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ manifests/
## Kubebuilder
**/kubebuilder
/docs/tmp/
/docs/release/
/docs/.hugo_build.lock
/docs/resources/_gen
/docs/public
Expand Down

0 comments on commit 0758565

Please sign in to comment.