Skip to content

Commit c7a7248

Browse files
committed
Added custom packaging to workflow
1 parent 4b8e114 commit c7a7248

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/publish-helm-chart.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Release Charts
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
on: push
74

85
jobs:
96
release:
@@ -17,6 +14,11 @@ jobs:
1714
uses: actions/checkout@v3
1815
with:
1916
fetch-depth: 0
17+
submodules: true
18+
19+
- name: Get SemVer version for current commit
20+
id: semver
21+
uses: stackhpc/github-actions/semver@master
2022

2123
- name: Configure Git
2224
run: |
@@ -28,10 +30,15 @@ jobs:
2830
env:
2931
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3032

33+
- name: "Package Chart"
34+
run: |
35+
helm package slurm-cluster-chart --version ${{ steps.semver.outputs.version }}
36+
3137
- name: Run chart-releaser
3238
uses: helm/[email protected]
3339
with:
3440
charts_dir: .
41+
skip_packaging: True
3542
env:
3643
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3744

0 commit comments

Comments
 (0)