owobot/.goreleaser.yaml

72 lines
1.5 KiB
YAML
Raw Normal View History

2023-12-04 23:55:01 +00:00
before:
hooks:
- go mod tidy
builds:
- id: owobot
env:
- CGO_ENABLED=0
binary: owobot
goos:
- linux
goarch:
- amd64
- 386
- arm64
- arm
- riscv64
archives:
- files:
2023-12-05 00:33:06 +00:00
- owobot.service
2023-12-04 23:55:01 +00:00
nfpms:
- id: owobot
description: "The coolest bot ever written"
homepage: 'https://gitea.elara.ws/owobot/owobot'
maintainer: 'Elara Musayelyan <elara@elara.ws>'
license: AGPLv3
formats:
- deb
- rpm
- archlinux
provides:
- owobot
conflicts:
- owobot
contents:
2023-12-05 00:33:06 +00:00
- src: owobot.service
dst: /etc/systemd/system/owobot.service
2023-12-04 23:55:01 +00:00
aurs:
- name: owobot-bin
homepage: 'https://gitea.elara.ws/owobot/owobot'
description: "The coolest bot ever written"
maintainers:
- 'Elara Musayelyan <elara@elara.ws>'
2023-12-05 01:06:52 +00:00
license: AGPLv3
2023-12-04 23:55:01 +00:00
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/owobot-bin.git'
provides:
- owobot
conflicts:
- owobot
package: |-
# binaries
install -Dm755 ./owobot "${pkgdir}/usr/bin/owobot"
# services
2023-12-05 00:33:06 +00:00
install -Dm644 ./owobot.service "${pkgdir}/etc/systemd/system/owobot.service"
2023-12-04 23:55:01 +00:00
release:
gitea:
owner: owobot
name: owobot
announce:
discord:
enabled: true
gitea_urls:
api: 'https://gitea.elara.ws/api/v1/'
download: 'https://gitea.elara.ws'
skip_tls_verify: false
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc