From 6868db70f13385ea5648d60805e818b06ee0773c Mon Sep 17 00:00:00 2001 From: Carlos Ravelo Date: Wed, 7 Apr 2021 22:28:46 -0400 Subject: [PATCH] Update release.yml Upgrade chart-releaser to latest version and add turnstyle --- .github/workflows/release.yml | 47 +++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 756216b..4cba4b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,26 +1,47 @@ name: Release Charts on: + workflow_dispatch: push: branches: - - master + - master + paths: + - "chart/**" jobs: + pre-release: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Block concurrent releases + uses: softprops/turnstyle@v1 + with: + continue-after-seconds: 180 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + release: + needs: pre-release runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v1 + - 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: 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@v1 + with: + version: v3.4.0 - - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.0.0 - with: + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.2.0 + with: charts_dir: chart - env: - CR_TOKEN: "${{ secrets.CR_TOKEN }}" - + env: + CR_TOKEN: "${{ secrets.CR_TOKEN }}"