Skip to content

Commit

Permalink
Add scoop bucket and aur
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyu003 committed Feb 19, 2023
1 parent befeda8 commit e609ee1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
35 changes: 30 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -68,4 +80,17 @@ snapcrafts:

apps:
sttr:
plugs: ["home", "network"]
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 <abhimanyusharma003@gmail.com>'
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

0 comments on commit e609ee1

Please sign in to comment.