Skip to content

Commit 2f7d3d0

Browse files
committed
added gh-pages branch to fix oci push
Signed-off-by: itsfarhan <[email protected]>
1 parent b084e9b commit 2f7d3d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/helm_publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
- name: Push to OCI Registry
3737
run: |
3838
echo ${{ secrets.CR_TOKEN }} | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
39-
git fetch origin gh-pages || echo "No gh-pages branch found"
40-
git checkout gh-pages -- charts/ || echo "No charts directory in gh-pages"
41-
ls -la charts/ || echo "No charts directory found"
39+
git fetch origin gh-pages
40+
git checkout origin/gh-pages -- charts/
41+
ls -la charts/
4242
for chart in charts/k8gb-*.tgz; do
4343
if [ -f "$chart" ]; then
4444
helm push "$chart" "oci://ghcr.io/k8gb-io/charts"

0 commit comments

Comments
 (0)