diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml new file mode 100644 index 0000000..b68baa7 --- /dev/null +++ b/.github/workflows/helm-release.yaml @@ -0,0 +1,31 @@ +name: Helm Release +on: + push: + branches: + - main + pull_request: #test +jobs: + chart: + name: Release Chart + runs-on: ubuntu-latest + permissions: + contents: write # needed to write releases + steps: + - name: Checkout master + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + # Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896 + 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@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: Helm Chart Releaser + uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0 + env: + CR_SKIP_EXISTING: true + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"