Skip to content

Commit

Permalink
chore: add .deb and .rpm to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonLiightz committed Mar 26, 2020
1 parent e12328b commit fd0ff10
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
dist/checksums.txt
dist/*.tar.gz
dist/*.zip
dist/*.deb
dist/*.rpm
name: ${{ steps.prepare.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78 changes: 50 additions & 28 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,53 @@ archives:
checksum:
name_template: 'checksums.txt'

# # This is an example goreleaser.yaml file with some sane defaults.
# # Make sure to check the documentation at http://goreleaser.com
# before:
# hooks:
# # You may remove this if you don't use go modules.
# - go mod download
# # you may remove this if you don't need go generate
# - go generate ./...
# builds:
# - env:
# - CGO_ENABLED=0
# archives:
# - replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
# checksum:
# name_template: 'checksums.txt'
# snapshot:
# name_template: "{{ .Tag }}-next"
# changelog:
# sort: asc
# filters:
# exclude:
# - '^docs:'
# - '^test:'
nfpms:
-
# You can change the name of the package.
# This is parsed with the Go template engine and the following variables
# are available:
# - ProjectName
# - Tag
# - Version (Git tag without `v` prefix)
# - Os
# - Arch
# - Arm (ARM version)
# - Env (environment variables)
# Default: `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

# Your app's vendor.
# Default is empty.
vendor: Patrick Stebbe

# Your app's homepage.
# Default is empty.
homepage: https://github.com/MoonLiightz/magic-home

# Your app's maintainer (probably you).
# Default is empty.
maintainer: Patrick Stebbe <[email protected]>

# Your app's description.
# Default is empty.
description: A CLI and library written in Go for controlling Magic Home (Magic Hue) LED Strip Controllers.

# Your app's license.
# Default is empty.
license: MIT

# Formats to be generated.
formats:
- deb
- rpm

# Replacements for GOOS and GOARCH in the package name.
# Keys should be valid GOOSs or GOARCHs.
# Values are the respective replacements.
# Default is empty.
replacements:
386: i386
arm: armhf

# Override default /usr/local/bin destination for binaries
# bindir: /usr/bin

0 comments on commit fd0ff10

Please sign in to comment.