commit e9cd9ecc66fca86affeb1e73b6ffdbfdeab68c9e parent a17bc6a96a06dc345aa1c0bf1868f60e76e6c6f3 Author: Sean Enck <sean@ttypty.com> Date: Mon, 29 Jul 2024 18:46:26 -0400 Revert "remove goreleaser" This reverts commit 37f68f43576e99ddf4e7b8919983077ea69c2d62. Diffstat:
| A | .github/workflows/release.yml | | | 27 | +++++++++++++++++++++++++++ |
| A | .goreleaser.yml | | | 24 | ++++++++++++++++++++++++ |
| M | README.md | | | 2 | ++ |
3 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: release + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: go + uses: actions/setup-go@v4 + with: + go-version: 1.19 + - name: run + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml @@ -0,0 +1,24 @@ +# .goreleaser.yml +# Build customization +project_name: lockbox +builds: + - main: cmd/main.go + env: + - CGO_ENABLED=0 + binary: lb + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + flags: + - -trimpath + +archives: + - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" + format: tar.gz + files: + - none* +checksum: + name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt" diff --git a/README.md b/README.md @@ -37,6 +37,8 @@ Use `lb help verbose` for additional information about options and environment v - zsh/bash/fish (for completions) - amd64/arm64 +built binaries are available on the [releases page](https://github.com/enckse/lockbox/releases) + ## usage ### clipboard