Avoid removal of index.yaml file
This commit is contained in:
parent
6d30247bc5
commit
e323e43e92
1 changed files with 3 additions and 5 deletions
8
.github/actions/mkdocs/action.sh
vendored
8
.github/actions/mkdocs/action.sh
vendored
|
@ -36,17 +36,15 @@ mkdocs build --config-file "${GITHUB_WORKSPACE}/mkdocs.yml"
|
||||||
git clone --branch=gh-pages --depth=1 "${remote_repo}" gh-pages
|
git clone --branch=gh-pages --depth=1 "${remote_repo}" gh-pages
|
||||||
cd gh-pages
|
cd gh-pages
|
||||||
|
|
||||||
# TODO: enable before release of helm chart
|
|
||||||
# copy current index file index.yaml before any change
|
# copy current index file index.yaml before any change
|
||||||
#temp_worktree=$(mktemp -d)
|
temp_worktree=$(mktemp -d)
|
||||||
#cp --force "index.yaml" "$temp_worktree/index.yaml"
|
cp --force "index.yaml" "$temp_worktree/index.yaml"
|
||||||
# remove current content in branch gh-pages
|
# remove current content in branch gh-pages
|
||||||
git rm -r .
|
git rm -r .
|
||||||
# copy new doc.
|
# copy new doc.
|
||||||
cp -r ../site/* .
|
cp -r ../site/* .
|
||||||
# restore chart index
|
# restore chart index
|
||||||
# TODO: enable before release of helm chart
|
cp "$temp_worktree/index.yaml" .
|
||||||
#cp "$temp_worktree/index.yaml" .
|
|
||||||
# commit changes
|
# commit changes
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Deploy GitHub Pages"
|
git commit -m "Deploy GitHub Pages"
|
||||||
|
|
Loading…
Reference in a new issue