diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5c8ea86..3317814c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,12 +19,6 @@ jobs: with: fetch-depth: 0 # Used to get tags to populate the version number - - name: Go module init - run: | - cd casket - go mod init casket - cd .. - - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index fa183bab..39da1205 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,6 +28,10 @@ builds: # Set dist directory to build/ since we have files in dist/ dist: build +before: + hooks: + - go mod tidy + archives: - id: casket builds: