8000 Add various packages support when releasing · sargath/symfony-cli@7748de9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7748de9

Browse files
committed
Add various packages support when releasing
1 parent de8827d commit 7748de9

File tree

2 files changed

+75
-18
lines changed

2 files changed

+75
-18
lines changed

.github/workflows/releaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
version: latest
4040
args: release --rm-dist
4141
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
4343
-
4444
name: Archive binaries
4545
uses: actions/upload-artifact@v2

.goreleaser.yml

Lines changed: 74 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
before:
2-
hooks:
3-
- go mod download
2+
hooks:
3+
- go mod download
44

55
changelog:
66
sort: desc
@@ -12,25 +12,25 @@ changelog:
1212

1313
builds:
1414
- env:
15-
- CGO_ENABLED=0
15+
- CGO_ENABLED=0
1616
goos:
17-
- linux
18-
- windows
19-
- darwin
17+
- linux
18+
- windows
19+
- darwin
2020
goarch:
21-
- 386
22-
- amd64
23-
- arm64
21+
- 386
22+
- amd64
23+
- arm64
2424
ignore:
25-
- goos: windows
26-
goarch: arm64
27-
- goos: darwin
28-
goarch: 386
25+
- goos: windows
26+
goarch: arm64
27+
- goos: darwin
28+
goarch: 386
2929
main: ./cmd
3030
binary: symfony
3131
ldflags: -s -w -X 'main.channel={{ if index .Env "AUTOUPDATE_CHANNEL" }}{{ .Env.AUTOUPDATE_CHANNEL }}{{ else }}dev{{ end }}' -X 'main.buildDate={{ .Date }}' -X 'main.version={{ .Version }}'
3232
flags:
33-
- -trimpath
33+
- -trimpath
3434

3535
archives:
3636
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
@@ -42,14 +42,71 @@ archives:
4242
- LICENSE
4343

4444
checksum:
45-
name_template: 'checksums.txt'
45+
name_template: 'checksums.txt'
4646

4747
snapshot:
48-
name_template: "next"
48+
name_template: "next"
4949

5050
universal_binaries:
51-
- replace: true
51+
- replace: true
5252

5353
release:
5454
footer: |
5555
**Full Changelog**: https://github.com/symfony-cli/symfony-cli/compare/{{ .PreviousTag }}...{{ .Tag }}
56+
57+
brews:
58+
- tap:
59+
owner: symfony-cli
60+
name: homebrew-tap
61+
commit_author:
62+
name: Fabien Potencier
63+
email: fabien@symfony.com
64+
folder: Formula
65+
goarm: "7"
66+
homepage: https://symfony.com
67+
description: Helps Symfony developers manage projects, from local code to remote infrastructure
68+
license: AGPL-3.0
69+
test: |
70+
system "#{bin}/symfony version"
71+
dependencies:
72+
- name: git
73+
type: optional
74+
install: |-
75+
bin.install "symfony"
76+
77+
rigs:
78+
- rig:
79+
owner: symfony-cli
80+
name: fish-food
81+
commit_author:
82+
name: Fabien Potencier
83+
email: fabien@symfony.com
84+
homepage: https://symfony.com
85+
description: Helps Symfony developers manage projects, from local code to remote infrastructure
86+
license: AGPL-3.0
87+
88+
scoop:
89+
bucket:
90+
owner: symfony-cli
91+
name: scoop-bucket
92+
commit_author:
93+
name: Fabien Potencier
94+
email: fabien@symfony.com
95+
homepage: https://symfony.com
96+
description: Helps Symfony developers manage projects, from local code to remote infrastructure
97+
license: AGPL-3.0
98+
99+
nfpms:
100+
- file_name_template: '{{ .ConventionalFileName }}'
101+
id: packages
102+
homepage: https://symfony.com
103+
description: Helps Symfony developers manage projects, from local code to remote infrastructure
104+
maintainer: Fabien Potencier <fabien@symfony.com>
105+
license: AGPL-3.0
106+
vendor: Symfony
107+
formats:
108+
- apk
109+
- deb
110+
- rpm
111+
recommends:
112+
- git

0 commit comments

Comments
 (0)
0