diff --git a/.github/workflows/go-releaser.yml b/.github/workflows/go-releaser.yml index debd4e5..fb56493 100644 --- a/.github/workflows/go-releaser.yml +++ b/.github/workflows/go-releaser.yml @@ -23,7 +23,9 @@ jobs: echo "::set-output name=go-mod::$(go env GOMODCACHE)" - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 # Cache go build cache, used to speedup go test - name: Go Build Cache @@ -31,13 +33,14 @@ jobs: with: path: ${{ steps.go-cache-paths.outputs.go-build }} key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} - # + # Cache go mod cache, used to speedup builds - name: Go Mod Cache uses: actions/cache@v2 with: path: ${{ steps.go-cache-paths.outputs.go-mod }} key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} + # Run goreleaser; this one creates the GH release and pushes the images - name: Run GoReleaser id: goreleaser-id