Skip to content

Commit 24b22fc

Browse files
committed
enable draft gh release
1 parent fa6b179 commit 24b22fc

File tree

1 file changed

+31
-24
lines changed

1 file changed

+31
-24
lines changed

.github/workflows/release-helm.yml

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,38 @@ jobs:
9898
# Push to GHCR OCI registry
9999
helm push "$CHART_PACKAGE" "oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts"
100100
101-
- name: Print Helm Chart URL
101+
- name: Create GitHub Release
102+
id: release
103+
uses: softprops/action-gh-release@v1
104+
if: github.event_name == 'push'
105+
with:
106+
tag_name: ${{ github.ref_name }}
107+
name: "Helm Chart ${{ steps.version.outputs.version }}"
108+
body: |
109+
## Helm Chart Release ${{ steps.version.outputs.version }}
110+
111+
### Installation
112+
```bash
113+
helm upgrade --install trigger \
114+
oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts/${{ env.CHART_NAME }} \
115+
--version ${{ steps.version.outputs.version }}
116+
```
117+
118+
### Changes
119+
See commit history for detailed changes in this release.
120+
files: |
121+
/tmp/${{ env.CHART_NAME }}-${{ steps.version.outputs.version }}.tgz
122+
token: ${{ secrets.GITHUB_TOKEN }}
123+
draft: true
124+
prerelease: true
125+
126+
- name: Print Chart Location
102127
run: |
103128
echo "Chart successfully published to:"
104129
echo "oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts/${{ env.CHART_NAME }}"
105130
106-
# Experimental GitHub Release step - disabled for now
107-
# - name: Create GitHub Release
108-
# uses: softprops/action-gh-release@v1
109-
# if: github.event_name == 'push'
110-
# with:
111-
# tag_name: ${{ github.ref_name }}
112-
# name: "Helm Chart ${{ steps.version.outputs.version }}"
113-
# body: |
114-
# ## Helm Chart Release ${{ steps.version.outputs.version }}
115-
116-
# ### Installation
117-
# ```bash
118-
# helm upgrade --install trigger \
119-
# oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts/${{ env.CHART_NAME }} \
120-
# --version ${{ steps.version.outputs.version }}
121-
# ```
122-
123-
# ### Changes
124-
# See commit history for detailed changes in this release.
125-
# files: |
126-
# /tmp/${{ env.CHART_NAME }}-${{ steps.version.outputs.version }}.tgz
127-
# env:
128-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131+
- name: Print Release URL
132+
if: github.event_name == 'push'
133+
run: |
134+
echo "GitHub Release created at:"
135+
echo "${{ steps.release.outputs.url }}"

0 commit comments

Comments
 (0)