From 3af015be4de92658c901721cffe1b57faaf580c4 Mon Sep 17 00:00:00 2001 From: Kyriakos Akriotis Date: Tue, 2 Apr 2024 21:59:50 +0200 Subject: [PATCH] Update main.yml Signed-off-by: Kyriakos Akriotis --- .github/workflows/main.yml | 49 ++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1303f5f..334f112 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,26 +1,23 @@ - - name: Helm Chart Releaser - # You may pin to the exact commit or the version. - # uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 - uses: helm/chart-releaser-action@v1.6.0 - with: - # The chart-releaser version to use (default: v1.6.1) - version: # optional, default is v1.6.1 - # The relative path to the chart-releaser config file - config: # optional - # The charts directory - charts_dir: deploy/cert-manager-webhook-opentelekomcloud - # Where to install the cr tool - install_dir: # optional - # Just install cr tool - install_only: # optional - # Skip the packaging option (do your custom packaging before running this action) - skip_packaging: # optional - # Skip package upload if release exists - skip_existing: # optional - # Mark the created GitHub release as 'latest' - mark_as_latest: # optional, default is true - # Upload chart packages directly into publishing branch - packages_with_index: # optional - # Name of the branch to be used to push the index and artifacts. (default to: gh-pages but it is not set in the action it is a default value for the chart-releaser binary) - pages_branch: # optional - +name: Release Charts +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + 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: Run chart-releaser + uses: helm/chart-releaser-action@v1.1.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"