-
Notifications
You must be signed in to change notification settings - Fork 31
49 lines (44 loc) · 1.38 KB
/
publish.yaml
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
42
43
44
45
46
47
48
49
---
name: Chart Publish
on:
push:
branches:
- master
- rewrite-build
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
id-token: write
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v3
- name: Add dependency chart repos
run: |
helm repo add openkruise https://openkruise.github.io/charts
helm repo add minio https://operator.min.io
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 "[email protected]"
# 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/[email protected]
with:
charts_dir: charts
config: "./.github/configs/cr.yaml"
env:
CR_TOKEN: "${{ secrets.GH_TOKEN }}"
CR_SKIP_EXISTING: "true"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"