Skip to content

Commit dc01b7d

Browse files
publish wf
1 parent 59e264f commit dc01b7d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
## Reference: https://github.com/helm/chart-releaser-action
21
name: Chart Publish
32
on:
43
push:
54
branches:
6-
- main
5+
- argo-workflows
76

87
permissions:
98
contents: read
@@ -27,20 +26,19 @@ jobs:
2726
- name: Add dependency chart repos
2827
run: |
2928
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
30-
3129
- name: Configure Git
3230
run: |
3331
git config user.name "$GITHUB_ACTOR"
3432
git config user.email "[email protected]"
35-
36-
## This is required to consider the old Circle-CI Index and to stay compatible with all the old releases.
37-
- name: Fetch current Chart Index
33+
- name: Package chart
3834
run: |
39-
git checkout origin/gh-pages index.yaml
40-
35+
rm -rf .cr-release-packages
36+
mkdir .cr-release-packages
37+
helm package charts/argo-workflows -u -d .cr-release-packages/
4138
- name: Run chart-releaser
42-
uses: helm/chart-releaser-action@v1.4.1
39+
uses: helm/chart-releaser-action@main
4340
with:
4441
config: "./.github/configs/cr.yaml"
42+
skip_packaging: true
4543
env:
46-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
44+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)