Skip to content

Commit 29cb8c3

Browse files
update gh file
1 parent eb01800 commit 29cb8c3

17 files changed

Lines changed: 89 additions & 545 deletions

.claude/settings.local.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/helm-release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Release Helm Charts
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- "deploy/helm/**"
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Configure Git
23+
run: |
24+
git config user.name "$GITHUB_ACTOR"
25+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
26+
27+
- name: Install Helm
28+
uses: azure/setup-helm@v4
29+
30+
- name: Run chart-releaser
31+
uses: helm/chart-releaser-action@v1.7.0
32+
with:
33+
charts_dir: deploy/helm
34+
skip_existing: true
35+
env:
36+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
37+
38+
- name: Copy ArtifactHub metadata to gh-pages
39+
env:
40+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
41+
run: |
42+
# Fetch latest gh-pages branch
43+
git fetch origin gh-pages:gh-pages 2>/dev/null || true
44+
45+
# Extract artifacthub-repo.yml from master
46+
AHUB_CONTENT=$(git show origin/master:artifacthub-repo.yml 2>/dev/null) || exit 0
47+
48+
# Switch to gh-pages and update the file
49+
git checkout gh-pages
50+
echo "$AHUB_CONTENT" > artifacthub-repo.yml
51+
git add artifacthub-repo.yml
52+
if ! git diff --cached --quiet; then
53+
git commit -m "chore: update artifacthub-repo.yml"
54+
git push origin gh-pages
55+
fi
56+
git checkout master

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ build/*
44
qcloud.yml
55
.DS_Store
66
*mock.go
7-
/bin
7+
/bin
8+
.claude/
9+
.omc/

0 commit comments

Comments
 (0)