-
Notifications
You must be signed in to change notification settings - Fork 333
45 lines (39 loc) · 1.2 KB
/
helm-charts-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "helm-charts/release"
# I'm hoping that this means we only trigger a release
# when the push is to the master branch and a Chart.yaml was
# modified.
#
# We've found that automatically releasing on push to master alone
# causes a lot of problems, especially as we forget to encourage contributors
# to bump the version; even reminding them isn't a great experience.
#
# This should allow us to have a successful build without such a change
# and then manually update the Chart version ourselves, without build
# failures
on:
push:
branches:
- master
paths:
- "**/Chart.yaml"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch history
run: git fetch --prune --unshallow
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.6.3
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true