File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ owner : platformspec
2+ git-repo : platspec-operator
3+ pages-branch : gh-pages
Original file line number Diff line number Diff line change 1+ name : Release Helm Chart
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ release-chart :
10+ name : Package and publish Helm chart
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Configure Git
20+ run : |
21+ git config user.name "$GITHUB_ACTOR"
22+ git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
23+
24+ - name : Install Helm
25+ uses : azure/setup-helm@v4
26+
27+ - name : Set chart version from tag
28+ run : |
29+ VERSION="${GITHUB_REF_NAME#v}"
30+ sed -i "s/^version:.*/version: ${VERSION}/" chart/Chart.yaml
31+ sed -i "s/^appVersion:.*/appVersion: \"${GITHUB_REF_NAME}\"/" chart/Chart.yaml
32+
33+ - name : Run chart-releaser
34+ uses : helm/chart-releaser-action@v1.6.0
35+ with :
36+ charts_dir : .
37+ config : .cr.yaml
38+ env :
39+ CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change 1+ charts.platformspec.io
You can’t perform that action at this time.
0 commit comments