name: release-helm
on:
  release:
    types: [released] # don't trigger on pre-releases
  workflow_dispatch: # allow manual trigger

permissions:
  contents: write

jobs:
  publish-chart:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
    - uses: stefanprodan/helm-gh-pages@f1701eb82e4d4b82016e7965501c8b6d79feaec9
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        charts_dir: charts
        target_dir: charts
        linting: off
