77 workflow_dispatch :
88 inputs :
99 tag :
10- description : ' Release tag to publish (e.g., v0.16.0)'
10+ description : " Release tag to publish (e.g., v0.16.0)"
1111 required : true
1212 type : string
1313permissions :
@@ -16,6 +16,9 @@ permissions:
1616jobs :
1717 publish :
1818 runs-on : ubuntu-24.04
19+ env :
20+ OCI_REPO : oci://ghcr.io/itsfarhan/charts
21+
1922 steps :
2023 - name : Harden Runner
2124 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -29,14 +32,22 @@ jobs:
2932 - uses : dave-mcconnell/helm-gh-pages-microservices@8478af5f0fd712cc0fb59f2c99e0688f3f591287
3033 with :
3134 access-token : ${{ secrets.CR_TOKEN }}
32- source-charts-folder : ' chart'
33- destination-repo : k8gb-io /k8gb
35+ source-charts-folder : " chart"
36+ destination-repo : itsfarhan /k8gb
3437 destination-branch : gh-pages
3538
36- # - name: Push to OCI Registry
37- # run: |
38- # echo ${{ secrets.CR_TOKEN }} | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
39- # helm push k8gb-*.tgz oci://ghcr.io/k8gb-io/charts
39+ - name : Push to OCI Registry
40+ run : |
41+ echo ${{ secrets.CR_TOKEN }} | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
42+ git fetch origin gh-pages
43+ git checkout origin/gh-pages -- charts/
44+ ls -la charts/
45+ OCI_REPO="${OCI_REPO:-oci://ghcr.io/itsfarhan/charts}"
46+ for chart in charts/k8gb-*.tgz; do
47+ if [ -f "$chart" ]; then
48+ helm push "$chart" "$OCI_REPO"
49+ fi
50+ done
4051
4152 - name : Create k3s cluster
4253 uses : AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79
0 commit comments