diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 553a70c..4b048a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,6 @@ jobs: - uses: cachix/install-nix-action@v16 - name: Run goreleaser - run: nix develop --command -- goreleaser release --rm-dist + run: nix develop --command -- goreleaser release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 0242df2..bcbc9b2 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ ignored/ *.out # Dependency directories (remove the comment below to include it) -# vendor/ +vendor/ dist/ /headscale diff --git a/.goreleaser.yml b/.goreleaser.yml index 8f6e958..e5f4b04 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,6 +2,7 @@ before: hooks: - go mod tidy -compat=1.20 + - go mod vendor release: prerelease: auto @@ -44,6 +45,13 @@ archives: name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" format: binary +source: + enabled: true + name_template: "{{ .ProjectName }}_{{ .Version }}" + format: tar.gz + files: + - "vendor/" + nfpms: # Configure nFPM for .deb and .rpm releases #