Skip to content

Publish Helm charts #52

Publish Helm charts

Publish Helm charts #52

name: Publish Helm charts
on:
release:
types:
- published
jobs:
release:
concurrency:
group: ${{ github.event.release.tag_name }}
cancel-in-progress: false
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- name: Install Helm
uses: azure/setup-helm@v3
- name: Run chart publisher script
run: ./scripts/build/helm-publisher.sh ${{ join(github.event.release.assets.*.browser_download_url, ' ') }}
shell: bash
- name: Push
shell: bash
run: |
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}