make debs/rpms, upload .debs to repo
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-05-24 20:27:45 +01:00
parent 8340ef1f20
commit 22ad0e29cb
2 changed files with 35 additions and 4 deletions

View File

@@ -8,7 +8,8 @@ before:
hooks:
- go mod download
builds:
- dir: ./
- id: main
dir: ./
env:
- CGO_ENABLED=0
goos:
@@ -18,16 +19,37 @@ builds:
- arm
- arm64
archives:
- replacements:
- id: main
builds:
- main
replacements:
linux: Linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "git-{{.ShortCommit}}"
name_template: "0.0.0-{{.ShortCommit}}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- id: main
file_name_template: '{{ .ProjectName }}-git-{{ .ShortCommit }}_{{ .Arch }}'
package_name: waybar-mpris
homepage: https://git.hrfee.pw/hrfee/waybar-mpris
description: MPRIS2 waybar component
maintainer: Harvey Tindall <hrfee@hrfee.dev>
license: MIT
vendor: hrfee.dev
version_metadata: git
builds:
- main
content:
- src: ./LICENSE
dst: /usr/share/licenses/waybar-mpris
formats:
- deb
- rpm