Skip to content

Commit 962fa72

Browse files
authored
GitHub action to publish Helm chart on tags (#5)
1 parent f9c7509 commit 962fa72

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Charts
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
jobs:
10+
release:
11+
permissions:
12+
contents: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Configure Git
21+
run: |
22+
git config user.name "$GITHUB_ACTOR"
23+
git config user.email "[email protected]"
24+
25+
- name: Install Helm
26+
uses: azure/setup-helm@v4
27+
28+
- name: Run chart-releaser
29+
uses: helm/[email protected]
30+
with:
31+
charts_dir: tools/pytorchjob-generator
32+
packages_with_index: true
33+
skip_existing: true
34+
env:
35+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

tools/pytorchjob-generator/chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: pytorchjob-generator
33
description: An AppWrapper generator for PyTorchJobs
44
type: application
55
version: 1.0.0
6-
appVersion: "workload.codeflare.dev/v1beta2"
6+
appVersion: "v1beta2"

0 commit comments

Comments
 (0)