From f282cd7d4e0cd1090fb97f5b7b3df423d37e5925 Mon Sep 17 00:00:00 2001 From: drew Date: Tue, 29 Jul 2025 17:24:26 +0400 Subject: [PATCH] fix: return goreleaser to the prev state --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 24 ++++++++++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d112c3206f9947e68c8a892b99ed904fb165988..6d41df703c414dafd549ad8355bb19c7f956aaee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --clean + args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 312c39ec63c55d3289c7d8868ac6a75da8d3bcf1..3c0ef2afca1bf19a52ed496eb400a01dd2d553eb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,7 @@ # This is the configuration file for GoReleaser. # It defines how your project should be built, packaged, and released. # For more information, see: https://goreleaser.com/customization/ -version: 2 +version: 1 # The 'before' hook runs commands before the build process starts. before: @@ -69,19 +69,39 @@ release: # If set to true, will mark the release as a pre-release. prerelease: auto +# 'brews' configures the Homebrew tap integration. brews: - - name: email-cli + - # The configuration for your Homebrew tap. + # The name of your formula file will be 'email-cli.rb'. + name: email-cli + # The GitHub repository for your Homebrew tap. tap: owner: andrinoff name: homebrew-email-cli + # The token to use for pushing to the tap repository. + # It uses the secret you'll create in your repository settings. token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + + # The commit author for the tap update. commit_author: name: goreleaserbot email: bot@goreleaser.com + + # A description for your formula. description: "A beautiful and functional email client for your terminal." + # The homepage URL for your formula. homepage: "https://github.com/andrinoff/email-cli" + + # The dependencies for your formula. + # Since it's a pre-compiled binary, there are no runtime dependencies. dependencies: [] + + # The test block for your formula. + # This command will be run by `brew test email-cli`. test: | system "#{bin}/email-cli --version" + + # The installation instructions for your formula. + # This tells Homebrew to just install the binary. install: | bin.install "email-cli"