Skip to content

Commit 470b2f6

Browse files
committed
wip
1 parent 8098116 commit 470b2f6

2 files changed

Lines changed: 57 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
/out/
1515
/pkgroot/
1616
/source/
17+
# Added by goreleaser init:
18+
dist/

.goreleaser.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+
3+
version: 2
4+
5+
project_name: php-matrix
6+
7+
builds:
8+
- skip: true
9+
10+
nfpms:
11+
- vendor: Typist Tech Limited
12+
maintainer: "Typist Tech Limited <opensource+{{ .ProjectName }}@typist.tech>"
13+
license: MIT
14+
formats:
15+
- apk
16+
- deb
17+
mtime: "{{ .CommitDate }}"
18+
19+
archives:
20+
- formats: [tar.gz]
21+
name_template: >-
22+
{{ .ProjectName }}_
23+
{{- title .Os }}_
24+
{{- if eq .Arch "amd64" }}x86_64
25+
{{- else if eq .Arch "386" }}i386
26+
{{- else }}{{ .Arch }}{{ end }}
27+
{{- if .Arm }}v{{ .Arm }}{{ end }}
28+
29+
homebrew_casks:
30+
- name: php-matrix
31+
homepage: https://github.com/typisttech/php-matrix
32+
description: |-
33+
List PHP versions that satisfy the required PHP constraint in composer.json
34+
hooks:
35+
post:
36+
install: |
37+
if OS.mac?
38+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/php-matrix"]
39+
end
40+
repository:
41+
owner: typisttech
42+
name: homebrew-tap
43+
token: "{{ .Env.GORELEASER_HOMEBREW_GITHUB_TOKEN }}"
44+
45+
checksum:
46+
name_template: "checksums.txt"
47+
48+
changelog:
49+
disable: true
50+
51+
release:
52+
use_existing_draft: true
53+
54+
metadata:
55+
mod_timestamp: "{{ .CommitTimestamp }}"

0 commit comments

Comments
 (0)