Skip to content

Commit 301f804

Browse files
authored
Merge pull request #692 from zwpaper/master
CI: add releasing helm chart
2 parents 464b399 + ab0b214 commit 301f804

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/helm.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Releases
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
7+
jobs:
8+
releases:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
if: github.event_name != 'pull_request'
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: azure/setup-helm@v3
16+
with:
17+
version: 'latest'
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
id: install
20+
- name: Package Helm Chart
21+
if: ${{ github.repository == 'kubernetes-sigs/scheduler-plugins' }}
22+
run: |
23+
helm package ./manifests/install/charts/as-a-second-scheduler
24+
- name: Upload to Release
25+
uses: softprops/action-gh-release@v1
26+
if: startsWith(github.ref, 'refs/tags/')
27+
with:
28+
files: "*.tgz"

0 commit comments

Comments
 (0)