diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml new file mode 100644 index 0000000..07f8d60 --- /dev/null +++ b/.github/workflows/helm-release.yaml @@ -0,0 +1,34 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +name: Helm Release + +permissions: {} + +on: + push: + tags: + - 'chart-v*' + +jobs: + chart-releaser: + runs-on: ubuntu-latest + permissions: + contents: write + pages: write + steps: + - name: Checkout + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - name: Install Helm + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + - name: Set version + run: | + set -e + TAG=${{ github.ref_name }} + echo "CHART_VERSION=${TAG#chart-}" >> $GITHUB_ENV + - name: Run chart-releaser + uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 #v1.7.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + linting: off + charts_dir: charts + chart_version: ${{ env.CHART_VERSION }}