From 4495711482ab3a279f4b0a44b79129f013673668 Mon Sep 17 00:00:00 2001 From: "Matthew M. Keeler" Date: Thu, 4 Apr 2024 13:02:37 -0400 Subject: [PATCH] build: Fix index.yaml generation (#63) 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' }}