diff --git a/.github/workflows/helm_chart_release.yml b/.github/workflows/helm_chart_release.yml index 4dbd6c1..57a4b0d 100644 --- a/.github/workflows/helm_chart_release.yml +++ b/.github/workflows/helm_chart_release.yml @@ -1,11 +1,8 @@ -name: Release Helm Chart - +name: "helm: publish charts" on: push: - branches: - - master - paths: - - 'deploy/helm/**' + tags: + - "*" permissions: contents: write @@ -13,32 +10,13 @@ permissions: jobs: release: - environment: helm-release - permissions: - contents: write runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Configure Git - run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - - name: Install Helm - uses: azure/setup-helm@v3.5 - id: helm-install + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + - name: Publish Helm charts + uses: stefanprodan/helm-gh-pages@master with: token: ${{ secrets.GITHUB_TOKEN }} - - - name: Run chart-releaser - id: helm-release - uses: helm/chart-releaser-action@v1.6.0 - with: charts_dir: deploy/helm - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - CR_GENERATE_RELEASE_NOTES: true + target_dir: helm + branch: gh-pages