Skip to content

Commit 533372e

Browse files
committed
fix: add a separate job for chart-releaser
1 parent 657fd82 commit 533372e

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ env:
1616
permissions: read-all
1717

1818
jobs:
19-
release:
20-
name: Create Release 🥇
19+
chart-releaser:
20+
name: chart-releaser
2121
permissions:
2222
contents: write
2323
packages: write
@@ -38,7 +38,6 @@ jobs:
3838
cat << EOF > chart-releaser-config.yaml
3939
release-name-template: "v{{ .Version }}"
4040
EOF
41-
shell: bash
4241
4342
- name: Run chart-releaser
4443
uses: helm/chart-releaser-action@v1.7.0
@@ -48,6 +47,18 @@ jobs:
4847
env:
4948
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
5049

50+
# goreleaser runs in a separate job because it needs a clean git state.
51+
goreleaser:
52+
needs: chart-releaser
53+
name: Create Release 🥇
54+
permissions:
55+
contents: write
56+
packages: write
57+
defaults:
58+
run:
59+
shell: bash
60+
runs-on: ubuntu-latest
61+
steps:
5162
- name: Setup Go 🐹
5263
uses: actions/setup-go@v5
5364
with:

helm/templates/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.3-rc12
18+
version: 0.0.3-rc13
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

0 commit comments

Comments
 (0)