1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-20 04:23:16 +00:00

Add helm chart publishing workflow

This commit is contained in:
2025-07-04 09:41:23 +02:00
parent 6bfc877c36
commit 4a391a7786
2 changed files with 101 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Publish Helm chart
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
release-chart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v3
- name: Package chart
run: |
mkdir -p chart-output
helm package charts/xslt-playground -d chart-output
- name: Generate chart index
run: |
cd chart-output
helm repo index . --url "https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY#*/}"
- name: Publish to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: chart-output