mirror of https://github.com/openkruise/charts.git
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
---
|
|
name: Chart Publish
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- rewrite-build
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@v1
|
|
|
|
# - name: Add dependency chart repos
|
|
# run: |
|
|
# helm repo add openkruise https://openkruise.github.io/charts
|
|
# helm repo add minio https://helm.min.io/
|
|
# helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
|
|
# helm repo add stable https://charts.helm.sh/stable
|
|
# helm repo add incubator https://charts.helm.sh/incubator
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "gh-actions"
|
|
git config user.email "actions@github.com"
|
|
|
|
## This is required to consider the old Circle-CI Index and to stay compatible with all the old releases.
|
|
# - name: Fetch current Chart Index
|
|
# run: |
|
|
# git checkout origin/gh-pages index.yaml
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@v1.2.1
|
|
with:
|
|
config: "./.github/configs/cr.yaml"
|
|
env:
|
|
CR_TOKEN: "${{ secrets.GH_PAGES_DEPLOY }}"
|