Skip to content

Commit

Permalink
Setup Go after Checkout step to make use of build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-kryvenko committed Sep 15, 2024
1 parent 39f605d commit 6275061
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 6275061

Please sign in to comment.