Skip to content

Commit b55538b

Browse files
committed
Refactoring the name to be more descriptive
Signed-off-by: Robert Seedorff <Robert.Seedorff@iteratec.com>
1 parent 5fc78ec commit b55538b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/helm-charts.yaml renamed to .github/workflows/helm-charts-release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ jobs:
3333
echo "Processing Helm Chart in $dir"
3434
helm package --version $RELEASE_VERSION .
3535
NAME=$(yq eval '.name' - < Chart.yaml)
36-
curl --silent --show-error --user "${USERNAME}:${PASSWORD}" --data-binary "@${NAME}-${RELEASE_VERSION}.tgz" "${HELM_REGISTRY}/api/charts"
36+
if [ -d "docs" ]; then
37+
echo "Docs Folder found at: ${dir}/docs"
38+
# Use prepared ArtifactHub specific README instead of the general existing one
39+
cp docs/README.ArtifactHub.md README.md
40+
else
41+
echo "Ignoring Docs process for Chart $dir, because no `docs` folder found at: ${dir}/docs"
42+
fi
43+
44+
curl --silent --show-error --http1.1 --user "${USERNAME}:${PASSWORD}" --data-binary "@${NAME}-${RELEASE_VERSION}.tgz" "${HELM_REGISTRY}/api/charts"
3745
sleep 5s
3846
)
3947
done

0 commit comments

Comments
 (0)