From 9b404493388db024e85f3dfcb0726c0778beb1d1 Mon Sep 17 00:00:00 2001 From: AssahBismarkabah Date: Wed, 27 Nov 2024 07:42:44 +0100 Subject: [PATCH] fix helm chart failure --- .github/workflows/ci.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2dfed047..293d03309 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,15 @@ -name: ci +name: CI and Deployments + on: push: branches: - feat/documentation -permissions: - contents: write + - main + jobs: - deploy: + deploy-docs: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/feat/documentation' steps: - uses: actions/checkout@v3 @@ -25,8 +27,23 @@ jobs: ${{ runner.os }}-pip- - name: Install dependencies - run: | - pip install mkdocs-material[imaging] - + run: pip install mkdocs-material[imaging] - name: Build and Deploy Documentation run: mkdocs gh-deploy --force + + publish-chart: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Publish Helm chart + uses: stefanprodan/helm-gh-pages@v1.7.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: contrib/charts + charts_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/charts + branch: gh-pages + target_dir: helm-charts + linting: off \ No newline at end of file