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