Skip to content

Commit a61c8ae

Browse files
authored
Fix push release to OCI
1 parent 057bb7d commit a61c8ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/gh-pages-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ jobs:
3030

3131
- name: Upload to OCI-based registry
3232
run: |
33-
helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
34-
find .cr-release-packages/ -name *.tgz -exec helm push oci://ghcr.io/openmcp-project {} \;
33+
if [ -d ".cr-release-packages" ]; then
34+
helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
35+
find .cr-release-packages/ -name *.tgz -exec helm push {} oci://ghcr.io/openmcp-project \;
36+
fi

0 commit comments

Comments
 (0)