100 lines
2.6 KiB
YAML
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: chronical
|
|
|
|
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: chronical
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
main: ./chronical.go
|
|
binary: chronical
|
|
ldflags:
|
|
- -w -X chronical/config.Version={{.Version}} -X chronical/config.Build={{.ShortCommit}} -X chronical/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: chronical
|
|
draft: false
|
|
|
|
#scoops:
|
|
# -
|
|
# name: chronical
|
|
# url_template: "https://git.anomalous.dev/57_Wolve/chronical/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
|
|
# license: "GPLv3"
|
|
# homepage: "https://anomalous.dev/"
|
|
# description: "chronical"
|
|
# 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
|