From 88e9c3dce00649ff55e1e3f9034bfc8e244c5c61 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 4 Oct 2023 19:41:24 +0100 Subject: [PATCH] Annoyingly OCI repos aren't cached by helm/helmfile, switch to gh-pages (#55) --- .github/workflows/release-chart.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 5f7949b..c30630d 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -18,8 +18,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: read - packages: write + contents: write steps: - name: Checkout @@ -35,16 +34,15 @@ jobs: run: | sed -i 's/^version: \(.*\)$/version: \1-${{ github.sha }}/g' charts/housewatch/Chart.yaml - - name: Helm login + - name: Configure Git run: | - echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io -u $ --password-stdin - - - name: Helm package - run: | - helm dependency update charts/housewatch/ - helm package charts/housewatch - - - name: Helm push - run: | - helm push housewatch-*.tgz oci://ghcr.io/posthog/housewatch/charts - + git config user.name "Max Hedgehog" + git config user.email "127861667+max-hedgehog[bot]@users.noreply.github.com" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d + if: github.repository == 'PostHog/HouseWatch' + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + skip_existing: true