Skip to content

Commit 0df2a97

Browse files
committed
🔧 chore: Update GoReleaser configuration and GitHub Actions workflow
- Updated GoReleaser configuration to version 2 and modified the archive name template for better clarity. - Removed the TAP_GITHUB_TOKEN from the GitHub Actions workflow environment variables to streamline the release process.
1 parent 8f61eec commit 0df2a97

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444
args: release --clean
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
4847
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
4948
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
5049
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}

.goreleaser.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
before:
24
hooks:
35
- go mod tidy
@@ -28,11 +30,10 @@ builds:
2830
binary: litecart
2931

3032
archives:
31-
- format: tar.gz
33+
- name_template: '{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}'
3234
format_overrides:
3335
- goos: windows
3436
format: zip
35-
name_template: '{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}'
3637
files:
3738
- README.md
3839

@@ -42,15 +43,6 @@ checksum:
4243
snapshot:
4344
name_template: '{{ .Tag }}-next'
4445

45-
brews:
46-
- repository:
47-
owner: shurco
48-
name: homebrew-tap
49-
token: '{{ .Env.TAP_GITHUB_TOKEN }}'
50-
homepage: https://github.com/shurco/litecart
51-
description: '🛒 litecart - shopping-cart in 1 file'
52-
license: 'MIT'
53-
5446
upx:
5547
- enabled: false
5648

0 commit comments

Comments
 (0)