From 4677c724f0c03c1b34342689550f963630dd6b38 Mon Sep 17 00:00:00 2001 From: martinibach <90472049+martinibach@users.noreply.github.com> Date: Wed, 4 Oct 2023 20:42:33 +0200 Subject: [PATCH] Update release-helm-chart.yaml --- .github/workflows/release-helm-chart.yaml | 42 ++++++----------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/.github/workflows/release-helm-chart.yaml b/.github/workflows/release-helm-chart.yaml index eb308fa8..df663928 100644 --- a/.github/workflows/release-helm-chart.yaml +++ b/.github/workflows/release-helm-chart.yaml @@ -11,46 +11,26 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v2 # Updated to v2 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - name: Setup Helm uses: azure/setup-helm@v1 with: - version: '3.7.0' # Replace with the version suitable for your charts + version: '3.7.0' - name: Lint and Test Chart run: | cd path/to/chart helm lint - # Execute tests if available - - - name: Package Chart - run: | - cd path/to/chart - helm package . - - name: Get Chart Version - id: get_version - run: | - echo "::set-output name=version::$(awk '/version:/ {print $2}' path/to/chart/Chart.yaml)" - - - name: Release Chart - uses: "J12934/helm-gh-pages-action@master" + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.1.0 with: - key: ${{ secrets.GH_PAGES_DEPLOY }} - chartPath: "path/to/chart" - chartsDir: "charts" - - - name: Create Release - id: create_release - uses: gh-actions/create-release@v1 + version: v1.2.0 # specify the chart releaser version env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: v${{ steps.get_version.outputs.version }} - release_name: Release ${{ steps.get_version.outputs.version }} - body: | - Changes in this Release - - ... - draft: false - prerelease: false + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"