Skip to content

Commit

Permalink
goreleaser: added snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Sep 16, 2023
1 parent ff88156 commit 52d6011
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
- name: "carapace-lint"
run: go run ./cmd/carapace-lint completers/*/cmd/*.go

- name: Install Snapcraft
# if: startsWith(github.ref, 'refs/tags/')
uses: samuelmeuli/action-snapcraft@v2

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
Expand Down
28 changes: 19 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ changelog:
exclude:
- '^docs:'
- '^test:'

brews:
-
name: carapace
Expand All @@ -40,15 +41,18 @@ brews:
name: homebrew-tap
token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
scoop:
description: "multi-shell multi-command argument completer"
homepage: "https://github.com/rsteube/carapace-bin"
license: "MIT"
bucket:
owner: rsteube
name: scoop-bucket
token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"

scoops:
-
description: "multi-shell multi-command argument completer"
homepage: "https://github.com/rsteube/carapace-bin"
license: "MIT"
bucket:
owner: rsteube
name: scoop-bucket
token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"

aurs:
-
description: "multi-shell multi-command argument completer"
Expand All @@ -75,6 +79,12 @@ nfpms:
- rpm
- termux.deb

snapcrafts:
-
summary: "multi-shell multi-command argument completer"
description: "multi-shell multi-command argument completer"
license: "MIT"

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

0 comments on commit 52d6011

Please sign in to comment.