Files
axis_timelapse/.goreleaser.yaml
2025-10-05 22:13:51 +00:00

100 lines
2.6 KiB
YAML

# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 2
project_name: axis_timelapse
force_token: gitea
snapshot:
version_template: "{{ incpatch .Version }}"
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
- windows
goarch:
- amd64
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
mod_timestamp: "{{ .CommitTimestamp }}"
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 }}"
formats: [ 'tar' ]
format_overrides:
- goos: windows
formats: [ '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
scoops:
-
name: axis_timelapse
url_template: "https://git.anomalous.dev/57_Wolve/axis_timelapse/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
license: "GPLv3"
homepage: "https://anomalous.dev/"
description: "axis_timelapse"
commit_author:
name: 57_Wolve
email: william.gill@anomalous.dev
signing:
enabled: false
# The signing key to use.
# Can be a key ID, fingerprint, email address, or path to a key file.
key: "{{ .Env.GPG_SIGNING_KEY }}"
program: gpg2
# The signature format to use.
# Valid options: openpgp, x509, ssh.
format: openpgp
#signs:
# - cmd: cosign
# certificate: "${artifact}.pem"
# output: true
# artifacts: checksum
# args:
# - sign-blob
# - "--output-certificate=${certificate}"
# - "--output-signature=${signature}"
# - "${artifact}"
# - --yes