-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.05 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release Helm Chart
on:
push:
branches:
- main # Change this to your default branch if it's not 'main'
workflow_dispatch: # Allows manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Helm
uses: azure/setup-helm@v3
with:
version: v3.5.4
- name: Build Helm dependencies
run: helm dependency build chart/
- name: Package Helm chart
run: helm package chart/
- name: Create Helm repo index
run: helm repo index . --url https://eth-cscs.github.io/firecrestspawner --merge index.yaml
- name: Push to gh-pages branch
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout gh-pages
cp ./*.tgz index.yaml .
git add *.tgz index.yaml
git commit -m "Update Helm repo"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}