Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Use Gorelease to publish new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Svetlin Ralchev committed Dec 13, 2019
1 parent c20d772 commit 5bd9432
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
before:
hooks:
- go mod download
builds:
- main: ./cmd/parcello/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- github:
owner: phogolabs
name: homebrew-tap
name: parcello
description: Golang Resource Bundler
homepage: https://github.com/phogolabs/parcello
test: |
system "#{bin}/parcello -v"
6 changes: 3 additions & 3 deletions cmd/parcello/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/phogolabs/parcello"
)

// Version represents the version number injected at compile time
var Version string = "unknown"
// version is injected by gorelease.com
var version string = "unknown"

const (
// ErrCodeArg is returned when an invalid argument is passed to CLI
Expand All @@ -28,7 +28,7 @@ func main() {
HelpName: "parcello",
Usage: "Golang Resource Bundler and Embedder",
UsageText: "parcello [global options]",
Version: Version,
Version: version,
Writer: os.Stdout,
ErrWriter: os.Stderr,
Action: run,
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/daaku/go.zipexe v1.0.1
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
github.com/mattn/go-sqlite3 v1.11.0
github.com/onsi/ginkgo v1.8.0
github.com/onsi/gomega v1.5.0
github.com/phogolabs/cli v0.0.0-20191007115343-b45b57e5579e
github.com/onsi/ginkgo v1.10.3
github.com/onsi/gomega v1.7.1
github.com/phogolabs/cli v0.0.0-20191212161310-ce689d871370
)

0 comments on commit 5bd9432

Please sign in to comment.