diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7365750..4bd0249 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,23 +6,24 @@ on: push: tags: - 'v*' + workflow_dispatch: + jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v2 - - - name: Unshallow + + - name: Unshallow run: git fetch --prune --unshallow - - - name: Set up Go + + - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.14 - - - name: Run GoReleaser + + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: version: latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 63b26d3..1ce1d21 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,10 +21,8 @@ builds: - linux goarch: - amd64 - - '386' - - arm - arm64 - binary: '{{ .ProjectName }}_v{{ .Version }}' + binary: '{{ .ProjectName }}' archives: - format: zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'