From 6923e2fb39d8e20016854cb7d3361851831d1a6b Mon Sep 17 00:00:00 2001 From: Vincent Lohse Date: Mon, 16 Dec 2024 16:33:01 +0100 Subject: [PATCH] Added publish workflow --- .github/workflows/run-tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5a68dd7..2c4cef6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -250,3 +250,31 @@ jobs: run: | source ./test_scripts/minio.env kubectl delete namespace $MINIO_TENANT_NAMESPACE --timeout=50s || true + + publish: + needs: [test-lifecycle] + if: github.repository == 'logicalclocks/rondb-helm' && github.ref_name == 'main' && startsWith(github.ref, 'refs/tags/') + name: Publish Helm chart + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout main repo + uses: actions/checkout@v4 + + - name: Set up Helm + uses: azure/setup-helm@v4 + with: + version: '3.13.3' + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"