@@ -64,44 +64,44 @@ jobs:
6464 tags : ${{ steps.meta.outputs.tags }}
6565 labels : ${{ steps.meta.outputs.labels }}
6666
67- # release-chart:
68- # needs: verify-app
69- # runs-on: ubuntu-latest
70- # steps:
71- # - name: Checkout repository
72- # uses: actions/checkout@v3
73- # with:
74- # fetch-depth: 0
75- #
76- # - name: Configure git
77- # run: |
78- # git config user.name "$GITHUB_ACTOR"
79- # git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
80- #
81- # - name: Release chart
82- # run: |
83- # # download helm chart releaser
84- # curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v1.2.1/chart-releaser_1.2.1_linux_amd64.tar.gz"
85- # tar -xzf cr.tar.gz
86- # rm -f cr.tar.gz
87- # owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
88- # repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")
89- # # package chart
90- # ./cr package charts/$repo
91- # # upload chart to github releases
92- # ./cr upload \
93- # --owner "$owner" \
94- # --git-repo "$repo" \
95- # --token "${{ secrets.GITHUB_TOKEN }}" \
96- # --release-name-template "{{ .Version }}"
97- # # update index and push to github pages
98- # git config user.email "$owner@users.noreply.github.com"
99- # git config user.name "$owner"
100- # ./cr index \
101- # --owner "$owner" \
102- # --git-repo "$repo" \
103- # --token "${{ secrets.GITHUB_TOKEN }}" \
104- # --release-name-template "{{ .Version }}" \
105- # --index-path ./index.yaml \
106- # --charts-repo https://$owner.github.io/$repo \
107- # --push
67+ release-chart :
68+ needs : verify-app
69+ runs-on : ubuntu-latest
70+ steps :
71+ - name : Checkout repository
72+ uses : actions/checkout@v3
73+ with :
74+ fetch-depth : 0
75+
76+ - name : Configure git
77+ run : |
78+ git config user.name "$GITHUB_ACTOR"
79+ git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
80+
81+ - name : Release chart
82+ run : |
83+ # download helm chart releaser
84+ curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v1.2.1/chart-releaser_1.2.1_linux_amd64.tar.gz"
85+ tar -xzf cr.tar.gz
86+ rm -f cr.tar.gz
87+ owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
88+ repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")
89+ # package chart
90+ ./cr package charts/$repo
91+ # upload chart to github releases
92+ ./cr upload \
93+ --owner "$owner" \
94+ --git-repo "$repo" \
95+ --token "${{ secrets.GITHUB_TOKEN }}" \
96+ --release-name-template "{{ .Version }}"
97+ # update index and push to github pages
98+ git config user.email "$owner@users.noreply.github.com"
99+ git config user.name "$owner"
100+ ./cr index \
101+ --owner "$owner" \
102+ --git-repo "$repo" \
103+ --token "${{ secrets.GITHUB_TOKEN }}" \
104+ --release-name-template "{{ .Version }}" \
105+ --index-path ./index.yaml \
106+ --charts-repo https://$owner.github.io/$repo \
107+ --push
0 commit comments