From 0a88444b1106837edc1dfd48f9813181fb87b8e9 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Tue, 19 Mar 2024 12:09:03 -0400 Subject: [PATCH] build: Fix index.yaml generation Fixes #62 --- .github/actions/publish/action.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 9120b5d..e96db88 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -26,15 +26,17 @@ runs: - name: Package the helm chart shell: bash - run: make package + run: | + mkdir -p new_chart + helm package -d new_chart . - name: Generate updated index.yaml shell: bash - run: helm repo index . --url https://launchdarkly.github.io/ld-relay-helm --merge helm-repo/index.yaml + run: helm repo index new_chart --url https://launchdarkly.github.io/ld-relay-helm --merge helm-repo/index.yaml - name: Move files into publishable directory shell: bash - run: mv ${{ steps.version.outputs.ARTIFACT }} index.yaml helm-repo + run: mv new_chart/${{ steps.version.outputs.ARTIFACT }} new_chart/index.yaml helm-repo - name: Publish to GitHub pages if: ${{ inputs.dry_run == 'false' }}