Skip to content

Commit

Permalink
GH workflow caches go dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealSpaceShip committed Jul 7, 2022
1 parent 808fa33 commit 18d7d96
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,24 @@ jobs:
-
name: Fetch all tags
run: git fetch --force --tags

-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17

-
name: Restore Go modules cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
Expand Down

0 comments on commit 18d7d96

Please sign in to comment.