Skip to content

Commit b686ea7

Browse files
committed
ci: call chart releaser directly
1 parent a669eb7 commit b686ea7

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,29 @@ jobs:
146146
--destination .cr-release-packages \
147147
--version "$version" \
148148
--app-version "$version"
149+
- name: Install chart-releaser
150+
env:
151+
CR_VERSION: v1.7.0
152+
run: |
153+
curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/${CR_VERSION}/chart-releaser_${CR_VERSION#v}_linux_amd64.tar.gz"
154+
tar -xzf cr.tar.gz -C "$RUNNER_TEMP"
155+
rm cr.tar.gz
156+
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
149157
- name: Publish chart
150-
uses: helm/chart-releaser-action@v1.7.0
151-
with:
152-
skip_packaging: true
153-
skip_existing: true
154-
mark_as_latest: false
155158
env:
156159
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
160+
run: |
161+
owner="${GITHUB_REPOSITORY%/*}"
162+
repo="${GITHUB_REPOSITORY#*/}"
163+
164+
cr upload \
165+
--owner "$owner" \
166+
--git-repo "$repo" \
167+
--commit "$(git rev-parse HEAD)" \
168+
--skip-existing \
169+
--make-release-latest=false
170+
171+
cr index \
172+
--owner "$owner" \
173+
--git-repo "$repo" \
174+
--push

0 commit comments

Comments
 (0)