Update README.md #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Charts | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "dongjiang1989" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.4.0 | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
merge-master-back-to-dev: | |
runs-on: ubuntu-latest | |
needs: | |
- release | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "dongjiang1989" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.4.0 | |
- name: Merge master back to gh-page | |
run: | | |
git checkout gh-pages | |
git pull | |
git merge --no-ff master -m "Auto-merge master back to gh-pages" | |
git push origin gh-pages | |
helm repo add jetstack https://charts.jetstack.io | |
for i in `ls -r charts` | |
do | |
helm dependency build charts/${i} | |
helm package charts/${i} | |
done | |
helm repo index . --url https://kubeservice-stack.github.io/kubservice-charts/ | |
git add . | |
git commit -m "update helm index.yaml" | |
git push origin gh-pages | |