diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml index a86411a..cb8c32f 100644 --- a/.github/workflows/release-binary.yml +++ b/.github/workflows/release-binary.yml @@ -1,21 +1,19 @@ name: 🎉 Release Binary on: - create: + push: + tags: + - '*' workflow_dispatch: jobs: release: runs-on: ubuntu-latest - if: ${{ startsWith(github.ref, 'refs/tags/v') }} - steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 with: go-version: 1.17 - - uses: goreleaser/goreleaser-action@v2 with: args: "release --rm-dist" diff --git a/.goreleaser.yml b/.goreleaser.yml index cb309a2..47a58a3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,21 +1,34 @@ +before: + hooks: + - go mod tidy + builds: - - binary: shuffledns - main: cmd/shuffledns/main.go - goos: - - linux - - windows - - darwin - goarch: - - amd64 - - 386 - - arm - - arm64 - +- env: + - CGO_ENABLED=0 + goos: + - windows + - linux + - darwin + goarch: + - amd64 + - 386 + - arm64 + + ignore: + - goos: darwin + goarch: '386' + - goos: windows + goarch: 'arm' + - goos: windows + goarch: 'arm64' + + binary: '{{ .ProjectName }}' + main: cmd/shuffledns/main.go + archives: - - id: tgz - format: tar.gz - replacements: - darwin: macOS - format_overrides: - - goos: windows - format: zip \ No newline at end of file +- format: zip + replacements: + darwin: macOS + +checksum: + algorithm: sha256 \ No newline at end of file diff --git a/pkg/runner/banners.go b/pkg/runner/banners.go index 594967e..d5eafa2 100644 --- a/pkg/runner/banners.go +++ b/pkg/runner/banners.go @@ -6,11 +6,11 @@ const banner = ` __ ________ __ ___ / / __ __/ _/ _/ /__ ___/ /__ ___ (_-