From f25fafb07e66ea284870f2a6a351b7928f1ddbbc Mon Sep 17 00:00:00 2001 From: AssahBismarkabah Date: Wed, 27 Nov 2024 10:27:28 +0100 Subject: [PATCH] feat publish charts with github pages --- .github/workflows/ci.yaml | 30 +++++++++++++++++++++++++++--- CHANGELOG.md | 2 ++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b958d1d7a..f15a61bf1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,9 +14,10 @@ on: push: branches: - main - paths-ignore: - - 'README.md' - - 'CHANGELOG.md' + paths: + - 'contrib/charts/**' + - '!README.md' + - '!CHANGELOG.md' tags: - 'v*' @@ -328,3 +329,26 @@ jobs: ## Quay.io * https://quay.io/repository/adorsys/keycloak-config-cli?tab=tags + + publish-helm-chart: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + needs: [build, build-pom-version, build-legacy, lint-other-files] + steps: + - uses: actions/checkout@v4.2.2 + with: + fetch-depth: 0 + - name: Set up Helm + uses: azure/setup-helm@v4.2.0 + with: + version: v3.4.0 + - name: Publish Helm chart + uses: stefanprodan/helm-gh-pages@v1.7.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: contrib/charts/keycloak-config-cli + charts_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/helm-charts + branch: gh-pages + target_dir: helm-charts + index_dir: helm-charts + linting: false diff --git a/CHANGELOG.md b/CHANGELOG.md index db1f3af3f..2da7cdc44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- Publish charts with github pages [#941](https://github.com/adorsys/keycloak-config-cli/issues/941) ## Fixed - otpPolicyAlgorithm ignored during import [#847](https://github.com/adorsys/keycloak-config-cli/issues/847)