diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index f9b8ccc..bdae876 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -27,6 +27,6 @@ jobs: version: latest args: release --rm-dist env: + AUR_KEY: ${{ secrets.AUR_SSH_KEY }} GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }} - FURY_TOKEN: ${{ secrets.FURY_TOKEN }} - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} \ No newline at end of file + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 48f718a..2dc28ab 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,18 +11,20 @@ before: builds: - main: ./main.go binary: sttr - goos: ['linux', 'darwin', 'windows'] - goarch: ['386', 'amd64', 'arm64'] + goos: [ 'linux', 'darwin', 'windows' ] + goarch: [ '386', 'amd64', 'arm64' ] + ldflags: + - -s -w -X "main.version={{.Version}}" env: - CGO_ENABLED=0 universal_binaries: -- replace: true + - replace: true changelog: sort: 'asc' filters: - exclude: ['^docs:', 'demo', '^hugo:', 'Merge pull request', 'Merge branch'] + exclude: [ '^docs:', 'demo', '^hugo:', 'Merge pull request', 'Merge branch' ] brews: - tap: @@ -42,6 +44,16 @@ brews: test: | system "#{bin}/sttr -v" +scoop: + bucket: + owner: abhimanyu003 + name: scoop-bucket + token: "{{ .Env.GITHUB_TOKEN }}" + name: sttr + homepage: "https://github.com/abhimanyu003/sttr" + description: "sttr is command line software that allows you to quickly run various transformation operations on the string." + license: "MIT" + nfpms: - builds: - sttr @@ -68,4 +80,17 @@ snapcrafts: apps: sttr: - plugs: ["home", "network"] \ No newline at end of file + plugs: [ "home", "network" ] + +aurs: + - name: sttr-bin + homepage: "https://github.com/abhimanyu003/sttr" + description: "sttr is command line software that allows you to quickly run various transformation operations on the string." + maintainers: + - 'Abhimanyu Sharma ' + license: "MIT" + private_key: '{{ .Env.AUR_KEY }}' + git_url: 'ssh://aur@aur.archlinux.org/sttr-bin.git' + commit_author: + name: Abhimanyu Sharma + email: abhimanyusharma003@gmail.com