This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
goreleaser-nightly.yaml
73 lines (67 loc) · 2.08 KB
/
goreleaser-nightly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
project_name: gh
release:
prerelease: true
name_template: 'GitHub CLI nightly {{.Version}}'
mode: replace
extra_files:
- glob: dist/*.snap
header: |
## Nightly build of the unofficial snap of GitHub CLI.
github:
owner: lengau
name: gh-snap
before:
hooks:
- go mod tidy
- snapcrafters/tools/generate-bash-completion.sh
builds:
- binary: gh
main: ./cmd/gh
ldflags:
# - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.
- -s -w -X github.com/cli/cli/v2/internal/build.Version={{.Version}}
- -X github.com/cli/cli/v2/internal/build.Date={{ .CommitDate }}
- -X main.updaterEnabled=cli/cli
- -X main.version={{.Version}}
- -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
goos: [linux]
goarch: ['386', arm, amd64, arm64, s390x, ppc64le]
env:
- CGO_ENABLED=0
# We don't need an archive for the snap...
archives:
- id: tarballs
rlcp: true
files:
- LICENSE
name_template: '{{ .ProjectName }}_{{.Version}}_{{ .Os }}_{{ .Arch }}'
snapcrafts:
- id: snaps
name_template: '{{ .ProjectName }}_{{.Version}}_{{ .Os }}_{{ .Arch }}'
publish: false
channel_templates:
- edge
summary: Unofficial Snap package for GitHub-CLI
description: |
**`gh` - The GitHub CLI tool**
`gh` is GitHub on the command line, and it's now available in beta. It brings pull requests, issues, and other GitHub concepts to
the terminal next to where you are already working with `git` and your code.
_Usage_
- `gh pr [status, list, view, checkout, create]`
- `gh issue [status, list, view, create]`
- `gh help`
grade: devel
confinement: classic
license: MIT
base: bare # This is a statically-linked binary - all dependencies exist outside of the snap.
apps:
gh:
command: gh
completer: gh.gh-completion.bash
checksum:
name_template: checksums.txt
ids:
- tarballs
- snaps
extra_files:
- glob: dist/*.snap