Skip to content

Commit

Permalink
Fix chart release Gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Sep 16, 2022
1 parent a580a34 commit a41c0bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/chart-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ jobs:
with:
fetch-depth: '0'

- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV

- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -64,8 +69,8 @@ jobs:
run: |
mkdir -p .cr-index
cr package charts/${CHART_NAME}
cr upload --release-name-template=chart/{{ .Name }}-{{ .Version }} --release-notes-file=.github/release-notes.md
cr index --push
cr upload "--release-name-template=chart/{{ .Name }}-{{ .Version }}" --release-notes-file=.github/release-notes.md
cr index "--release-name-template=chart/{{ .Name }}-{{ .Version }}" --push
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CR_OWNER: ${{ github.repository_owner }}
Expand Down

0 comments on commit a41c0bc

Please sign in to comment.