mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 11:58:41 +00:00
ci: make helm release only on bump version (#2928)
This commit is contained in:
9
.github/workflows/helm-releaser.yml
vendored
9
.github/workflows/helm-releaser.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user