From 6ffc29aa1c1c7fa2da058720eaea341220165ed6 Mon Sep 17 00:00:00 2001 From: Matt H Date: Mon, 5 Feb 2024 13:44:27 -0800 Subject: [PATCH] Update GHA to use updated versions and non-deprecated publisher (#265) Signed-off-by: Matt Hoey --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ce13c860..583da95b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,13 +3,27 @@ on: push: branches: [ master ] jobs: - build: + release: + # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token + permissions: + contents: write runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Package and Publish charts - uses: J12934/helm-gh-pages-action@master - with: - deploy-branch: gh-pages - access-token: "${{ secrets.CR_TOKEN }}" + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Install Helm + uses: azure/setup-helm@v3 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + env: + CR_TOKEN: "${{ secrets.CR_TOKEN }}"