-
Notifications
You must be signed in to change notification settings - Fork 24
46 lines (39 loc) · 1.18 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
name: Release Charts on Merge
on:
pull_request:
types: [closed]
branches:
- main
jobs:
release-on-merge:
if: >
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'release')
runs-on: ubuntu-latest
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 "${{ github.actor }}@users.noreply.github.com"
- name: Lint Chart - Main chart
run: helm lint .
- name: Update Dependencies
run: helm dependency update .
- name: Run chart-releaser
uses: helm/[email protected]
with:
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Deploy to GitHub Pages
run: |
git checkout gh-pages
git pull origin main --rebase --autostash
helm repo index . --url https://getlago.github.io/charts
git add .
git commit -m "Update Helm repo index after release"
git push origin gh-pages