From 2d43e5595207848ccbede7ba0983f3cb551302b8 Mon Sep 17 00:00:00 2001 From: liyaka Date: Mon, 26 Aug 2024 18:09:20 +0300 Subject: [PATCH] use helm releaser --- .github/workflows/publish_chart.yaml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish_chart.yaml b/.github/workflows/publish_chart.yaml index 934db47..cf0a425 100644 --- a/.github/workflows/publish_chart.yaml +++ b/.github/workflows/publish_chart.yaml @@ -65,20 +65,15 @@ jobs: helm package --version ${{env.VERSION_NAME}} public-test/ cd - - - name: Update Helm Charts repo index - run: | - cd charts - helm repo index --url https://comet-ml.github.io/public-test/ --merge index.yaml . - cat index.yaml - cd - - - - name: Push the changes - run: | - git config --local user.email "github-actions@comet.com" - git config --local user.name "github-actions" - git add charts/* - git commit -m "Publish helm chart ${{env.VERSION_NAME}}" - git push origin main + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + with: + charts_dir: charts + skip_packaging: true + skip_existing: true + packages_with_index: true + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - name: Summary run: |