chore(ci): fix rm on chart-release (#3155)

* chore(ci): fix rm on chart-release

* move app specific guide icons in the repo

* Update charts-release.yaml

* Update charts-release.yaml

* Update charts-release.yaml

Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Stavros Kois
2022-07-13 01:21:41 +03:00
committed by GitHub
parent 12433d7d56
commit da9e7d57a3
9 changed files with 12 additions and 15 deletions
+1 -3
View File
@@ -87,9 +87,6 @@ jobs:
#!/bin/bash
CHARTS=(${{ steps.collect-changes.outputs.modifiedChartsAfterTag }})
echo "Removing Chart Docs prior to regeneration..."
for deltrain in stable SCALE incubator games enterprise develop non-free deprecated dependency core; do
rm -rf website/charts/${deltrain}
done
mkdir -p website/static/img/chart-icons || echo "chart-icons path already exists, continuing..."
for i in "${CHARTS[@]}"
do
@@ -98,6 +95,7 @@ jobs:
train=${chart_parts[0]}
chart=${chart_parts[1]}
echo "copying docs to website for ${chart}"
rm -rf website/docs/charts/*/${chart}
mkdir -p website/docs/charts/${train}/${chart} || echo "chart path already exists, continuing..."
yes | cp -rf charts/${train}/${chart}/README.md website/docs/charts/${train}/${chart}/index.md 2>/dev/null || :
yes | cp -rf charts/${train}/${chart}/CHANGELOG.md website/docs/charts/${train}/${chart}/CHANGELOG.md 2>/dev/null || :