1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-20 04:23:16 +00:00
Files
xslt-lab/.github/workflows/publish-helm.yml
T
2025-07-04 09:52:11 +02:00

36 lines
770 B
YAML

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.GH_TOKEN }}
publish_dir: chart-output