From 5e632b5b91677828eb1f525fed642c10fa165486 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Tue, 20 Jun 2023 00:05:42 +0200 Subject: [PATCH] chore: reduce disk space consumption during release --- .github/workflows/release.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 231cf499..a388a322 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,23 +15,15 @@ jobs: CGO_ENABLED: 0 steps: - - name: Set up Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v3 - with: - go-version: ${{ env.GO_VERSION }} - - name: Check out code uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Cache Go modules - uses: actions/cache@v3 + - name: Set up Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v4 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version: ${{ env.GO_VERSION }} - name: Docker Login env: @@ -47,9 +39,9 @@ jobs: # https://goreleaser.com/ci/actions/ - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v4 with: version: latest - args: release --clean --timeout=90m + args: release -p 1 --clean --timeout=90m env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}