-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
executable file
·127 lines (108 loc) · 4.74 KB
/
.goreleaser.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
builds:
-
targets:
- linux_amd64_v1
- linux_arm64
- darwin_amd64_v1
- darwin_arm64
- windows_amd64_v1
hooks:
post:
- mkdir -p dist/apig-swagger-ui_darwin_amd64_v1
- cp pkg/apig-swagger-ui-macos-x64 dist/apig-swagger-ui_darwin_amd64_v1/apig-swagger-ui
- mkdir -p dist/apig-swagger-ui_darwin_arm64
- cp pkg/apig-swagger-ui-macos-arm64 dist/apig-swagger-ui_darwin_arm64/apig-swagger-ui
- mkdir -p dist/apig-swagger-ui_linux_amd64_v1
- cp pkg/apig-swagger-ui-linux-x64 dist/apig-swagger-ui_linux_amd64_v1/apig-swagger-ui
- mkdir -p dist/apig-swagger-ui_linux_arm64
- cp pkg/apig-swagger-ui-linux-arm64 dist/apig-swagger-ui_linux_arm64/apig-swagger-ui
- mkdir -p dist/apig-swagger-ui_windows_amd64_v1
- cp pkg/apig-swagger-ui-win-x64.exe dist/apig-swagger-ui_windows_amd64_v1/apig-swagger-ui.exe
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
release: # to GitHub releases
skip_upload: false
brews: # push to github.com/handy-common-utils/homebrew-tap
-
# NOTE: make sure the url_template, the token and given repo (github or
# gitlab) owner and name are from the same kind.
# We will probably unify this in the next major version like it is
# done with scoop.
# GitHub/GitLab repository to push the formula to
repository:
owner: handy-common-utils
name: homebrew-tap
# Template for the url which is determined by the given Token (github,
# gitlab or gitea)
#
# Default depends on the client.
url_template: "https://github.com/james-hu/apig-swagger-ui/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# The project name and current git tag are used in the format string.
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Your app's homepage.
# Default is empty.
homepage: "https://github.com/james-hu/apig-swagger-ui"
# Template of your app's description.
# Default is empty.
description: "Command line tool for generating OpenAPI spec and Swagger UI from AWS API Gateway"
# SPDX identifier of your app's license.
# Default is empty.
license: "Apache-2.0"
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: false
snapcrafts:
-
# You can change the name of the package.
# Default: `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}`
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# Whether to publish the snap to the snapcraft store.
# Remember you need to `snapcraft login` first.
# Defaults to false.
publish: true
summary: A command-line tool for visualisation of AWS serverless (Lambda, API Gateway, SNS, SQS, etc.) dataflow
description: For more information, see https://github.com/james-hu/apig-swagger-ui
grade: stable
confinement: strict
license: Apache-2.0
base: core20
# Add extra files on the resulting snap. Useful for including wrapper
# scripts or other useful static files. Source filenames are relative to the
# project directory. Destination filenames are relative to the snap prime
# directory.
# Default is empty.
# extra_files:
# - source: pkg/xdg-open
# destination: bin/xdg-open
# mode: 0755
# Each binary built by GoReleaser is an app inside the snap. In this section
# you can declare extra details for those binaries. It is optional.
# See: https://snapcraft.io/docs/snapcraft-app-and-service-metadata
apps:
# The name of the app must be the same name as the binary built or the snapcraft name.
apig-swagger-ui:
command: "" # It seems empty means default
plugs:
- home
- network
- network-bind
- removable-media
- dot-aws-config-credentials
plugs:
dot-aws-config-credentials:
interface: personal-files
read:
- $HOME/.aws/config
- $HOME/.aws/credentials
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj