Skip to content

Commit

Permalink
fix publishing of docs to include helm chart (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 authored Aug 31, 2024
1 parent 827214e commit 63ea95b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/release-helm-chart-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ jobs:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: "true"
CR_RELEASE_NAME_TEMPLATE: "kubeai-helm-chart-{{ .Version }}"
- name: Copy index.yaml from gh-pages branch to main branch docs/index.yaml
run: |
git checkout gh-pages
git pull origin gh-pages
cp index.yaml /tmp/index.yaml
git checkout main
mkdir -p docs
mv /tmp/index.yaml docs/index.yaml
# check if the file is modified returns exit code 1 if it is
git diff --exit-code docs/index.yaml
if [ $? -eq 1 ]; then
git add docs/index.yaml
git commit -m "CI: Copy index.yaml from gh-pages to main"
git push
exit 0
fi
echo "No changes to index.yaml"
publish-docs:
needs: release-charts
permissions:
Expand All @@ -59,4 +76,4 @@ jobs:
restore-keys: |
mkdocs-material-
- run: pip install -r docs/requirements.txt
- run: mkdocs gh-deploy
- run: git fetch origin && mkdocs gh-deploy
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.kubeai.org

0 comments on commit 63ea95b

Please sign in to comment.