diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1c9d10..f50f55d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: goreleaser -on: push +on: + push: + tags: + - '*' permissions: contents: write @@ -20,6 +23,6 @@ jobs: with: distribution: goreleaser version: latest - args: release --clean --snapshot + args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_PAT }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a65edfe..93a98c4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -39,7 +39,38 @@ changelog: - '^docs:' - '^test:' -# The lines beneath this are called `modelines`. See `:help modeline` -# Feel free to remove those if you don't want/use them. -# yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=2 sw=2 tw=0 fo=cnqoj +nfpms: +- + package_name: lemonade + homepage: https://github.com/cnt0/lemonade + maintainer: cnt0 + description: |- + Lemonade is a remote utility tool. + (copy, paste and open browser) over TCP. + formats: + - apk + - deb + - rpm + - archlinux + +release: + github: + owner: cnt0 + name: lemonade + +brews: +- tap: + owner: cnt0 + name: homebrew-tap + folder: Formula + homepage: https://github.com/cnt0/lemonade + description: |- + Lemonade is a remote utility tool. + (copy, paste and open browser) over TCP. + install: |- + bin.install "lemonade" + service: | + run [bin/"lemonade", "server"] + keep_alive true + log_path var/"log/lemonade.log" + error_log_path var/"log/lemonade.log"