Add .goreleaser.yaml
This commit is contained in:
62
.goreleaser.yaml
Normal file
62
.goreleaser.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
project_name: axis_timelapse
|
||||
force_token: gitea
|
||||
gitea_urls:
|
||||
api: https://git.anomalous.dev/api/v1
|
||||
download: https://git.anomalous.dev/
|
||||
skip_tls_verify: false
|
||||
before:
|
||||
hooks:
|
||||
# You may remove this if you don't use go modules.
|
||||
#- go mod download
|
||||
- go mod tidy
|
||||
#- go mod vendor
|
||||
# you may remove this if you don't need go generate
|
||||
- go generate
|
||||
builds:
|
||||
-
|
||||
id: axis_timelapse
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm
|
||||
- arm64
|
||||
goarm:
|
||||
- 6
|
||||
- 7
|
||||
main: ./axis_timelapse.go
|
||||
binary: axis_timelapse
|
||||
ldflags:
|
||||
- -w -X axis_timelapse/config.Version={{.Version}} -X axis_timelapse/config.Build={{.ShortCommit}} -X axis_timelapse/config.SentryDSN=https://70209de06de24662a0f43b47a99de86b@sentry.alphacentri.com/2
|
||||
archives:
|
||||
-
|
||||
# Can be used to change the archive formats for specific GOOSs.
|
||||
# Most common use case is to archive as zip on Windows.
|
||||
# Default is empty.
|
||||
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
|
||||
format: 'tar'
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
source:
|
||||
enabled: true
|
||||
name_template: '{{ .ProjectName }}_{{ .Version }}'
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
release:
|
||||
# Repo in which the release will be created.
|
||||
# Default is extracted from the origin remote URL or empty if its private hosted.
|
||||
# Note: it can only be one: either github, gitlab or gitea
|
||||
gitea:
|
||||
owner: 57_Wolve
|
||||
name: axis_timelapse
|
||||
draft: false
|
||||
scoop:
|
||||
url_template: "https://git.anomalous.dev/57_Wolve/axis_timelapse/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
|
||||
# Git author used to commit to the repository.
|
||||
# Defaults are shown.
|
||||
commit_author:
|
||||
name: 57_Wolve
|
||||
email: william.gill@anomalous.dev
|
||||
Reference in New Issue
Block a user