Skip to content

Commit

Permalink
Goreleaser; update copyright year, company (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
philpennock committed Mar 3, 2021
1 parent bb989bb commit 635d675
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -23,4 +23,5 @@ _testmain.go
*.test
*.prof

/dist
/nats-top
51 changes: 51 additions & 0 deletions .goreleaser.yml
@@ -0,0 +1,51 @@
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- windows
- darwin
# Need nats-server 2.2.0 released for FreeBSD:
##- freebsd
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
# These copied from nats-server ignores; if that repo updates the
# pre-generated stuff needed for non-cgo cross-compile to FreeBSD, we can
# update here too:
##- goos: freebsd
## goarch: arm
##- goos: freebsd
## goarch: arm64
##- goos: freebsd
## goarch: 386
# ... but only once nats-server 2.2.0 is released so we have cross-compile for FreeBSD at all

checksum:
name_template: 'SHA256SUMS'
algorithm: sha256

snapshot:
name_template: "{{ .Tag }}-next"

nfpms:
- file_name_template: '{{.ProjectName}}-{{.Tag}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}'
homepage: https://nats.io
description: "Top(1) style utility for NATS"
license: MIT
vendor: "Synadia Communications, Inc"
formats:
- deb
- rpm

2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 NATS Messaging System
Copyright (c) 2015-2021 NATS Messaging System

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion util/test/make-new-certs.sh
Expand Up @@ -15,7 +15,7 @@ die() { warn "$@"; exit 1; }

[ -f tls.conf ] || die "no tls.conf in current directory"

ORG_NAME='Synadia Communications, LLC'
ORG_NAME='Synadia Communications, Inc'
CA_COMMON_NAME='NATS top tool test suite'

# The default duration of the CA in cfssl is 5 years, changing it is
Expand Down

0 comments on commit 635d675

Please sign in to comment.