diff --git a/.github/workflows/chart.yaml b/.github/workflows/chart.yaml new file mode 100644 index 000000000..1add35c08 --- /dev/null +++ b/.github/workflows/chart.yaml @@ -0,0 +1,30 @@ +name: publish_helm_chart + +on: + push: + branches: + - master + paths: + - ".github/workflows/chart.yaml" + - "charts/**" + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-20.04 + steps: + # pinning to the sha 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f from https://github.com/actions/checkout/releases/tag/v2.3.4 + - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 + with: + submodules: true + fetch-depth: 0 + - name: Publish Helm chart + # pinning to the sha f1701eb82e4d4b82016e7965501c8b6d79feaec9 from https://github.com/stefanprodan/helm-gh-pages/releases/tag/v1.4.1 + uses: stefanprodan/helm-gh-pages@f1701eb82e4d4b82016e7965501c8b6d79feaec9 + with: + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: charts + target_dir: charts + linting: off