name: Helm publish
description: Helm chart creation and uploading
runs:
  using: composite
  steps:
  - name: Set up Cloud SDK
    uses: 'google-github-actions/setup-gcloud@6a7c903a70c8625ed6700fa299f5ddb4ca6022e9'
  - uses: linkerd/dev/actions/setup-tools@v47
  - shell: bash
    run: |
      mkdir -p target/helm
      gsutil cp gs://helm.linkerd.io/edge/index.yaml target/helm/index-pre.yaml
      bin/compute-edge-version update-charts
      helm-docs
      bin/helm-build package
      cp charts/artifacthub-repo-edge.yml target/helm/artifacthub-repo.yml
      gsutil rsync target/helm gs://helm.linkerd.io/edge
