From ff3acb7bd14e462eb890dca5c7db4968b9ddd558 Mon Sep 17 00:00:00 2001 From: Jake Schuurmans Date: Mon, 1 Jul 2024 12:16:10 -0400 Subject: [PATCH] Revert "Testing another change to the chart releaser" This reverts commit 7ec9a9e6ae521c8e5698cf38f7bc4ea61f73f0db. --- .github/workflows/chart-release.yaml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chart-release.yaml b/.github/workflows/chart-release.yaml index ba597c2..7c64439 100644 --- a/.github/workflows/chart-release.yaml +++ b/.github/workflows/chart-release.yaml @@ -3,7 +3,7 @@ name: Release Charts on: push: branch: - - FS-1428 + - 'v*.*.*' jobs: build: @@ -21,20 +21,36 @@ jobs: with: path: ${{ env.CHART_NAME }} fetch-depth: 0 + - + name: Checkout Helm chart Repo + uses: actions/checkout@v4 + with: + repository: metal-toolbox/helm-charts + path: helm-charts + ref: gh-pages + fetch-depth: 0 - name: Install Helm uses: azure/setup-helm@v4.2.0 - - name: Package and ship Helm Chart + name: Package Helm Chart run: | - git clone git@github.com:metal-toolbox/helm-charts.git ./helm-charts sed -i "s/VERSION/${{ github.ref_name }}/g" ./${{ env.CHART_NAME }}/chart/Chart.yaml helm package ./${{ env.CHART_NAME }}/chart -u -d ./helm-charts/ helm repo index ./helm-charts/ --url https://metal-toolbox.github.io/helm-charts/ + - + name: Create Git Commit + run: | cd helm-charts - git config --unset-all http.https://github.com/.extraheader git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" git add index.yaml *.tgz git commit -m "published ${{ env.CHART_NAME }}-${{ github.ref_name }}.tgz" - git push https://token:${{ secrets.GITHUB_TOKEN }}@github.com/metal-toolbox/helm-charts.git \ No newline at end of file + - + name: Push Changes + uses: ad-m/github-push-action@master + with: + repository: metal-toolbox/helm-charts + directory: helm-charts + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages \ No newline at end of file