Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/release-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
name: Release Helm Chart

on:
push:
tags:
Comment thread
cursor[bot] marked this conversation as resolved.
- 'client-v*'
- 'v*'
Comment thread
cursor[bot] marked this conversation as resolved.
release:
types: [published]

Expand All @@ -26,8 +22,14 @@ jobs:
id-token: write
steps:
- name: Checkout
# Pin ref to the release tag rather than letting checkout default to
# github.ref, which intermittently arrives empty on release-triggered
# runs (actions/runner#2788, still open). An empty default would cause
# checkout to fall back to the repo default branch and package the
# chart from the wrong commit.
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
fetch-depth: 0

- name: Set up Helm
Expand Down Expand Up @@ -101,10 +103,13 @@ jobs:
git push origin gh-pages
fi

- name: Upload chart to GitHub Release (on tag)
if: startsWith(github.ref, 'refs/tags/')
- name: Upload chart to GitHub Release
# Pin tag_name from the release event payload rather than relying on
# github.ref / github.ref_name, which intermittently arrive empty on
# release-triggered runs (actions/runner#2788, still open).
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.release.tag_name }}
files: client-*.tgz
generate_release_notes: true
env:
Expand Down