Merge pull request #252 from Leukocyte-Lab/build/release-chart-agh3-p… #15
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: ⚙️ [AGH3-Playground] Auto Publish Chart | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- charts/playground/** | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🔔 Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: src | |
fetch-depth: 0 | |
- name: 🔔 Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: dest | |
ref: 'gh-pages' | |
fetch-depth: 0 | |
- name: ⚙️ Configure Git | |
working-directory: dest | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: 📦 Install Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.14.4 | |
- name: 📦 Package Helm Charts | |
shell: bash | |
run: | | |
helm dep up src/charts/playground | |
helm package src/charts/playground -u -d dest | |
- name: 🎁 Release Chart | |
shell: bash | |
working-directory: dest | |
run: | | |
helm repo index . --url https://charts.lkc-lab.com/ --merge index.yaml | |
git add $(git ls-files -o --exclude-standard) | |
git add index.yaml | |
git commit -m "Release from ref: $GITHUB_SHA" | |
git push |