-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.13 KB
/
release.yml
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
46
47
name: Release Helm Chart
on:
push:
branches:
- main
paths:
- 'charts/**'
jobs:
releaseHelmChart:
runs-on: ubuntu-latest
permissions:
pages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Send Slack Notification
if: success()
uses: slackapi/[email protected]
with:
payload: |
{
"text": "✅ Successfully released ${{ github.repository }} Helm Chart\nBranch: ${{ github.ref_name }}\nTags: ${{
github.ref_name
}}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}