From 0e017ad50322afd7a50d4a6404a6ce91aa321d02 Mon Sep 17 00:00:00 2001 From: Anurag Rajawat Date: Tue, 30 Jan 2024 12:10:51 +0530 Subject: [PATCH] feat(ci): Add release charts job Signed-off-by: Anurag Rajawat --- .github/workflows/latest-charts-release.yaml | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/latest-charts-release.yaml diff --git a/.github/workflows/latest-charts-release.yaml b/.github/workflows/latest-charts-release.yaml new file mode 100644 index 00000000..9900e408 --- /dev/null +++ b/.github/workflows/latest-charts-release.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2023 Authors of Nimbus + +name: Release Charts + +on: + push: + branches: + - main + - "v*" + paths: + - "deployments/**" + create: + branches: + - "v*" + +jobs: + release: + if: github.repository == '5GSEC/nimbus' + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v3 + + - name: Install Helm + uses: azure/setup-helm@v3 + + - name: Publish Helm chart + uses: stefanprodan/helm-gh-pages@master + with: + # Access token which can push to a different repo in the same org + token: ${{ secrets.GH_ACCESS_TOKEN }} + charts_dir: deployments/ + # repo where charts would be published + owner: 5GSEC + repository: charts + branch: gh-pages + charts_url: https://5gsec.github.io/charts/ + commit_username: "github-actions[bot]" + commit_email: "github-actions[bot]@users.noreply.github.com"