Skip to content

Commit 2acfc6c

Browse files
committed
ci: fix Helm index generation by downloading chart package
1 parent 0774ccc commit 2acfc6c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ jobs:
128128
uses: azure/setup-helm@v4
129129
- name: Create charts directory
130130
run: mkdir -p docs/charts
131+
- name: Download chart from release
132+
run: |
133+
gh release download v${TO_VERSION} --pattern "catalogi-*.tgz" --dir docs/charts/
134+
env:
135+
GH_TOKEN: ${{ github.token }}
131136
- name: Generate Helm repository index
132137
run: |
133138
helm repo index docs/charts/ --url https://github.com/codegouvfr/catalogi/releases/download/v${TO_VERSION}/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ CLAUDE.md
1111
# Helm
1212
helm-charts/*/Chart.lock
1313
helm-charts/*/charts/
14+
docs/charts/*.tgz

0 commit comments

Comments
 (0)