Skip to content

Enable different gpu type for p/d (#186) #95

Enable different gpu type for p/d (#186)

Enable different gpu type for p/d (#186) #95

Workflow file for this run

name: Helm Chart Release
on:
push:
branches:
- main
paths:
- charts/**
workflow_dispatch:
jobs:
release-charts:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Checks out the main branch
ref: main
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Add Helm dependency repos
run: |
for dir in $(ls -d charts/*/); do
helm dependency list --max-col-width 120 $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.7.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: "true"
- name: Sync latest changes to gh-pages
run: |
set -e # Exit on error
# Note: The gh-pages branch is created/updated by chart-releaser-action above
# Fetch the gh-pages branch
git fetch origin gh-pages
# Checkout gh-pages branch
git checkout gh-pages
# Copy chart source files and README from main branch
git checkout main -- charts/ README.md
# Commit the changes if there are any
if ! git diff --quiet; then
git add charts/ README.md
git commit -m "Sync latest changes from main branch"
git push origin gh-pages
echo "Successfully synced changes to gh-pages"
else
echo "No changes to sync"
fi