From 62750613aef9664b15a79f9eb0ff69b13829e5d8 Mon Sep 17 00:00:00 2001 From: Dee Kryvenko Date: Sun, 15 Sep 2024 17:14:04 -0600 Subject: [PATCH] Setup Go after Checkout step to make use of build cache --- .github/workflows/goreleaser.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index ab88810..2bcd59f 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -23,16 +23,16 @@ jobs: if: github.event_name != 'workflow_dispatch' runs-on: ubuntu-latest steps: - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.23' - - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + - name: Run GoReleaser (build only) uses: goreleaser/goreleaser-action@v6 with: @@ -45,11 +45,6 @@ jobs: if: github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.23' - - name: Create tag if: github.event_name == 'workflow_dispatch' uses: actions/github-script@v5 @@ -68,6 +63,11 @@ jobs: fetch-depth: 0 ref: refs/tags/${{ github.event.inputs.releaseVersion }} + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: