@@ -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