diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 47d53d7..45480e9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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