From e609ee1082772768a26a446d42de7d9d79c2bc45 Mon Sep 17 00:00:00 2001 From: Abhimanyu Sharma Date: Sun, 19 Feb 2023 11:51:56 +0530 Subject: [PATCH] Add scoop bucket and aur --- .github/workflows/goreleaser.yml | 4 ++-- .goreleaser.yml | 35 +++++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 7 deletions(-) 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