Skip to content

Commit af97404

Browse files
authored
Merge pull request #2034 from nextcloud/enh/1582/add-helm-chart-release
Add Helm Chart Releaser workflow
2 parents fc56c26 + 62afa91 commit af97404

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/helm-release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
name: Helm Chart Releaser
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'helm-chart/**'
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Turnstyle
19+
uses: softprops/turnstyle@v1
20+
with:
21+
continue-after-seconds: 180
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Fetch history
26+
run: git fetch --prune --unshallow
27+
28+
- name: Configure Git
29+
run: |
30+
git config user.name "$GITHUB_ACTOR"
31+
git config user.email "[email protected]"
32+
33+
# See https://github.com/helm/chart-releaser-action/issues/6
34+
- name: Set up Helm
35+
uses: azure/[email protected]
36+
with:
37+
version: v3.6.3
38+
39+
- name: Run chart-releaser
40+
# TODO: switch back @main to a specific version like @v1.5.1 or higher
41+
uses: helm/chart-releaser-action@main
42+
with:
43+
charts_repo_url: https://nextcloud.github.io/all-in-one
44+
charts_dir: helm-chart
45+
mark_as_latest: false
46+
env:
47+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
48+
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
49+
CR_SKIP_EXISTING: true

0 commit comments

Comments
 (0)