From c76e22bee1c4cde09f6a610c4524d255bd0790e1 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 19:59:50 +0100 Subject: [PATCH 1/6] Package manually and skip packaging step With the packaging step it includes some janky change detection that we don't want --- .github/workflows/release-chart.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index c30630d..81500a5 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -39,6 +39,11 @@ jobs: git config user.name "Max Hedgehog" git config user.email "127861667+max-hedgehog[bot]@users.noreply.github.com" + - name: Package + run: | + helm dependency update charts/housewatch/ + helm package charts/housewatch + - name: Run chart-releaser uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d if: github.repository == 'PostHog/HouseWatch' @@ -46,3 +51,4 @@ jobs: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: skip_existing: true + skip_packaging: true From 1eb76b8aa72eb21be346503be0700adca9cbb044 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 20:03:07 +0100 Subject: [PATCH 2/6] Package in .cr-release-packages --- .github/workflows/release-chart.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 81500a5..faacbe5 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -42,7 +42,9 @@ jobs: - name: Package run: | helm dependency update charts/housewatch/ - helm package charts/housewatch + mkdir -p .cr-release-packages + cd .cr-release-packages + helm package ../charts/housewatch - name: Run chart-releaser uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d From 21aea8b3e7729323076e60c4188cbc93e6a6c12e Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 20:04:01 +0100 Subject: [PATCH 3/6] cd - --- .github/workflows/release-chart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index faacbe5..6e7ac82 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -45,6 +45,7 @@ jobs: mkdir -p .cr-release-packages cd .cr-release-packages helm package ../charts/housewatch + cd - - name: Run chart-releaser uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d From be06fc844dc6b07180edeede378d756df08c5836 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 20:07:36 +0100 Subject: [PATCH 4/6] try --- .github/workflows/release-chart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 6e7ac82..febf97e 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -46,6 +46,7 @@ jobs: cd .cr-release-packages helm package ../charts/housewatch cd - + set -x - name: Run chart-releaser uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d From 78df61eb5b68c9a29cebe84c8047995656b3b7fa Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 20:16:55 +0100 Subject: [PATCH 5/6] Fetch gh-pages --- .github/workflows/release-chart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index febf97e..e2b14d3 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -38,6 +38,7 @@ 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: | From 5234a4238591c6e5b802119205aa10dcbc5630e1 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 20:21:55 +0100 Subject: [PATCH 6/6] Older version --- .github/workflows/release-chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index e2b14d3..3581ad1 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -50,7 +50,7 @@ jobs: set -x - name: Run chart-releaser - uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d + uses: helm/chart-releaser-action@4b85f2c82c80ff4284ff8520f47bbe69dd89b0aa if: github.repository == 'PostHog/HouseWatch' env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"