From ef37319bec384a14436901455b5339153dd8b7b9 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Thu, 20 Apr 2023 22:31:30 +0100 Subject: [PATCH] feat: save pre-release charts in CI --- .github/workflows/lint-test.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 9afe3f9..2861dd4 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -50,3 +50,15 @@ jobs: - name: Run chart-testing (install) run: ct install --config ct.yaml + + - id: get-version + run: | + echo version=$(helm show chart ./charts/flagsmith | grep -oP '^version: \K.*')-a$(date +"%Y%m%d%H%M%S") >> $GITHUB_OUTPUT + + - run: helm package ./charts/flagsmith --version ${{ steps.get-version.outputs.version }} --destination out + + - name: Save the chart archive + uses: actions/upload-artifact@v3 + with: + name: flagsmith-${{ steps.get-version.outputs.version }}.tgz + path: out/flagsmith-${{ steps.get-version.outputs.version }}.tgz