ci: make helm release only on bump version (#2928)

This commit is contained in:
DarkSky
2023-06-30 10:02:46 +08:00
committed by GitHub
parent eaea8e9368
commit 50a8a147fd

View File

@@ -3,8 +3,8 @@ name: Release Charts
on: on:
push: push:
branches: [master] branches: [master]
pull_request: paths:
branches: [master] - '.github/helm/**/Chart.yml'
jobs: jobs:
release: release:
@@ -43,11 +43,12 @@ jobs:
helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update helm repo update
helm dependencies build ../.github/helm/affine
helm dependencies build ../.github/helm/affine-cloud helm dependencies build ../.github/helm/affine-cloud
cr package ../.github/helm/affine
cr package ../.github/helm/affine-cloud cr package ../.github/helm/affine-cloud
- name: Package charts - name: Publish charts
if: github.ref == 'refs/heads/master'
working-directory: .helm-chart-repo working-directory: .helm-chart-repo
run: | run: |
set -ex set -ex