Skip to content

Commit

Permalink
goreleaser: added publish to repos
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Apr 5, 2023
1 parent 782358e commit eeacfcd
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
47 changes: 47 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,50 @@ changelog:
- '^docs:'
- '^test:'

brews:
-
name: carapace-bridge
description: "completion bridge"
homepage: "https://github.com/rsteube/carapace-bridge"
license: "MIT"
tap:
owner: rsteube
name: homebrew-tap
token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
scoop:
description: "completion bridge"
homepage: "https://github.com/rsteube/carapace-bridge"
license: "MIT"
bucket:
owner: rsteube
name: scoop-bucket
token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
aurs:
-
description: "completion bridge"
homepage: "https://github.com/rsteube/carapace-bridge"
license: "MIT"
maintainers:
- rsteube <rsteube@users.noreply.github.com>
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/carapace-bridge.git'

nfpms:
-
description: "completion bridge"
homepage: "https://github.com/rsteube/carapace-bridge"
license: "MIT"
maintainer: rsteube <rsteube@users.noreply.github.com>
formats:
- apk
- deb
- rpm
- termux.deb

publishers:
- name: fury
cmd: "bash -c \"[[ {{.ArtifactPath}} =~ ^.*.(deb|rpm)$ ]] && curl -F package=@{{abs .ArtifactPath}} https://$FURY_TOKEN@push.fury.io/rsteube/ || true\""
env:
- FURY_TOKEN={{ .Env.FURY_TOKEN }}

0 comments on commit eeacfcd

Please sign in to comment.