Fix helm issue

This commit is contained in:
2025-08-06 21:51:39 +10:00
parent 083d8a78c6
commit 41f5ba9e61
3 changed files with 14 additions and 17 deletions
+11 -14
View File
@@ -11,8 +11,6 @@ on:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
@@ -77,6 +75,17 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Create gh-pages branch if it doesn't exist
run: |
if ! git ls-remote --exit-code --heads origin gh-pages; then
echo "Creating gh-pages branch"
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initial gh-pages commit"
git push origin gh-pages
git checkout main
fi
- name: Install Helm
uses: azure/setup-helm@v4
with:
@@ -93,15 +102,3 @@ jobs:
config: .github/cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .cr-index
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4