From de40d5459fc115f95ff5e8ec42e3199d0f390e4f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 28 Apr 2023 12:16:01 +0100 Subject: [PATCH] ci(release): split chart release into separate job Currently the chart release seems to not work, but that's an issue for another day. --- .github/workflows/ci.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af76902..9e2e3eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,12 +57,6 @@ jobs: with: fetch-depth: 0 - run: git fetch --force --tags - - name: Configure Git - run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor }}@users.noreply.github.com" - - name: Install Helm - uses: azure/setup-helm@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 @@ -84,6 +78,22 @@ jobs: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + release-chart: + runs-on: ubuntu-latest + needs: [release, release-please] + if: needs.release-please.outputs.release_created + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: git fetch --force --tags + - name: Configure Git + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + - name: Install Helm + uses: azure/setup-helm@v3 - name: Package chart run: helm package ./chart -d .cr-release-packages - name: Run chart-releaser