From 51cc6db7aa5ad66c33388446fd379721a37dcee4 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 20:22:50 +0100 Subject: [PATCH] Package manually and skip packaging step (#56) * Package manually and skip packaging step With the packaging step it includes some janky change detection that we don't want * Package in .cr-release-packages * cd - * try * Fetch gh-pages * Older version * only main --- .github/workflows/release-chart.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index c30630d..6f29efc 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -38,11 +38,23 @@ jobs: run: | git config user.name "Max Hedgehog" git config user.email "127861667+max-hedgehog[bot]@users.noreply.github.com" + git fetch origin gh-pages --depth=1 + + - name: Package + run: | + helm dependency update charts/housewatch/ + mkdir -p .cr-release-packages + cd .cr-release-packages + helm package ../charts/housewatch + cd - + set -x - name: Run chart-releaser - uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d + uses: helm/chart-releaser-action@4b85f2c82c80ff4284ff8520f47bbe69dd89b0aa + if: github.ref != 'refs/heads/main' if: github.repository == 'PostHog/HouseWatch' env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: skip_existing: true + skip_packaging: true