Skip to content

Commit

Permalink
try using manual script like in this comment: https://github.com/helm…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulzer committed Sep 17, 2023
1 parent 1f06706 commit 5b54324
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,30 @@ jobs:
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
with:
charts_dir: charts
- name: Package and upload Helm chart
run: |
curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v${CR_VERSION}/chart-releaser_${CR_VERSION}_linux_amd64.tar.gz"
tar -xzf cr.tar.gz cr
rm cr.tar.gz
owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")
# package chart
./cr package deploy/chart/$repo
# upload chart to Github Releases
./cr upload \
--owner "$owner" \
--git-repo "$repo" \
--release-name-template "{{ .Version }}"
# update index and push to Github Pages
git config user.email "$owner@users.noreply.github.com"
git config user.name "$owner"
./cr index \
--owner "$owner" \
--git-repo "$repo" \
--release-name-template "{{ .Version }}" \
--index-path ./index.yaml \
--charts-repo https://$owner.github.io/$repo \
--push
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true
CR_VERSION: "1.5.0"

0 comments on commit 5b54324

Please sign in to comment.