Skip to content

Commit 455cf39

Browse files
Merge branch 'main' into main
2 parents ecbb9f2 + 1d8900d commit 455cf39

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/release.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
release:
10+
permissions:
11+
contents: write
12+
packages: write
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout
@@ -22,7 +25,7 @@ jobs:
2225
- name: Install Helm
2326
uses: azure/setup-helm@v3
2427
with:
25-
version: v3.10.3
28+
version: v3.13.3
2629

2730
- name: Add Helm repositories
2831
run: |
@@ -35,3 +38,21 @@ jobs:
3538
env:
3639
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3740
CR_GENERATE_RELEASE_NOTES: true
41+
42+
# see https://github.com/helm/chart-releaser/issues/183
43+
- name: Login to GitHub Container Registry
44+
uses: docker/login-action@v1
45+
with:
46+
registry: ghcr.io
47+
username: ${{ github.actor }}
48+
password: ${{ secrets.GITHUB_TOKEN }}
49+
50+
- name: Push Charts to GHCR
51+
run: |
52+
shopt -s nullglob
53+
for pkg in .cr-release-packages/*; do
54+
if [ -z "${pkg:-}" ]; then
55+
break
56+
fi
57+
helm push "${pkg}" oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts
58+
done

0 commit comments

Comments
 (0)