2022-02-13 23:38:54 +08:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
builds:
|
|
|
|
- binary: shiori
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
2023-07-17 21:30:18 +08:00
|
|
|
- GIN_MODE=release
|
2022-02-13 23:38:54 +08:00
|
|
|
tags:
|
|
|
|
- netgo
|
|
|
|
- osusergo
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
goarm:
|
2023-07-02 18:50:29 +08:00
|
|
|
- "7"
|
2022-02-13 23:38:54 +08:00
|
|
|
ignore:
|
|
|
|
- goos: darwin
|
|
|
|
goarch: arm
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm64
|
|
|
|
archives:
|
2023-07-02 18:50:29 +08:00
|
|
|
- id: shiori
|
|
|
|
name_template: >-
|
|
|
|
{{ .ProjectName }}_
|
2023-07-02 18:54:08 +08:00
|
|
|
{{- if eq .Os "darwin" }}Darwin{{- else if eq .Os "linux" }}Linux{{- else if eq .Os "windows" }}Windows{{- else }}{{ .Os }}{{ end }}_
|
2023-07-02 18:50:29 +08:00
|
|
|
{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "arm64" }}aarch64{{- else }}{{ .Arch }}{{ end }}
|
2024-04-13 15:16:01 +08:00
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
2022-02-13 23:38:54 +08:00
|
|
|
|
2024-05-14 14:01:52 +08:00
|
|
|
# TODO:
|
|
|
|
# upx:
|
|
|
|
# - enabled: true
|
|
|
|
# ids:
|
|
|
|
# - shiori
|
|
|
|
# goos: [linux, darwin]
|
|
|
|
# goarch: [amd64, arm, arm64]
|
|
|
|
# goarm: ["7"]
|
|
|
|
|
2022-02-13 23:38:54 +08:00
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ incpatch .Version }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
2024-02-07 01:55:34 +08:00
|
|
|
groups:
|
|
|
|
- title: Features
|
|
|
|
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
|
|
|
|
order: 0
|
|
|
|
- title: "Fixes"
|
|
|
|
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
|
|
|
|
order: 1
|
|
|
|
- title: "Performance"
|
|
|
|
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
|
|
|
|
order: 2
|
|
|
|
- title: API
|
|
|
|
regexp: '^.*?api(\([[:word:]]+\))??!?:.+$'
|
|
|
|
order: 3
|
|
|
|
- title: Documentation
|
|
|
|
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
|
|
|
|
order: 4
|
|
|
|
- title: "Tests"
|
|
|
|
regexp: '^.*?test(\([[:word:]]+\))??!?:.+$'
|
|
|
|
order: 5
|
|
|
|
- title: CI and Delivery
|
|
|
|
regexp: '^.*?ci(\([[:word:]]+\))??!?:.+$'
|
|
|
|
order: 6
|
|
|
|
- title: Others
|
|
|
|
order: 999
|
2022-02-13 23:38:54 +08:00
|
|
|
filters:
|
|
|
|
exclude:
|
2024-02-07 01:55:34 +08:00
|
|
|
- "^deps:"
|
|
|
|
- "^chore\\(deps\\):"
|
2022-02-13 23:38:54 +08:00
|
|
|
release:
|
|
|
|
prerelease: auto
|