help release fix

This commit is contained in:
Harivansh Rathi 2026-02-07 20:13:09 -05:00
parent 165ac465e7
commit 081739b9a3
3 changed files with 21 additions and 54 deletions

View file

@ -9,6 +9,7 @@ on:
permissions:
contents: write
packages: write
concurrency:
group: release-${{ github.ref }}
@ -29,6 +30,9 @@ jobs:
with:
go-version-file: go.mod
- name: Setup Helm
uses: azure/setup-helm@v4
- name: Compute next version
id: version
shell: bash
@ -93,3 +97,17 @@ jobs:
name: ${{ steps.version.outputs.next_tag }}
generate_release_notes: true
files: dist/*
- name: Set chart version
run: |
sed -i "s/^version:.*/version: ${{ steps.version.outputs.version }}/" chart/agentikube/Chart.yaml
sed -i "s/^appVersion:.*/appVersion: \"${{ steps.version.outputs.version }}\"/" chart/agentikube/Chart.yaml
- name: Package Helm chart
run: helm package chart/agentikube/ --destination .helm-pkg
- name: Log in to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push Helm chart to GHCR
run: helm push .helm-pkg/agentikube-${{ steps.version.outputs.version }}.tgz oci://ghcr.io/${{ github.repository_owner }}