Skip to content

Commit

Permalink
feat: add go releaser yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
VassilisPallas committed Oct 23, 2023
1 parent e0397db commit 87c26eb
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 4 deletions.
57 changes: 57 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
builds:
-
ldflags:
- -s -w -X "main.version={{.Env.RELEASE_VERSION}}"
main: cmd/gvs/main.go
binary: gvs
goos:
- darwin
- linux
# - windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
# ignore:
# - goos: windows
# goarch: arm
checksum:
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archives:
-
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
386: 386
amd64: amd64
# format_overrides:
# - goos: windows
# format: zip
brews:
-
name: gvs
commit_author:
name: Vasileios Pallas
email: [email protected]
folder: Formula
caveats: "Type 'gvs' on your command line and choose the Go version that you want from the dropdown. This command currently only works on macOS and Linux"
homepage: "https://github.com/VassilisPallas/gvs"
description: "A command line tool to manage multiple active Go versions."
conflicts:
- go
skip_upload: false
test: |
system "#{bin}/gvs --version"
install: |
bin.install "gvs"
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<img style="text-allign:center" src="./logo.png" alt="drawing" width="120" height="100"/>

# Golang Version Switcher
![example workflow](https://github.com/VassilisPallas/gvs/actions/workflows/actions.yml/badge.svg?branch=main&event=push)
<p align="center">
<img alt="GoReleaser Logo" src="./logo.png" height="140" />
<h2 align="center">Golang Version Switcher</h2>
<p align="center">
<a href="https://github.com/VassilisPallas/gvs/actions?workflow=build">
<img alt="Github Actions status" src="https://github.com/VassilisPallas/gvs/actions/workflows/actions.yml/badge.svg?branch=main&event=push"/>
</a>
<a href="https://github.com/VassilisPallas/gvs/releases/latest">
<img alt="GitHub release tags" src="https://img.shields.io/github/v/tag/VassilisPallas/gvs">
</a>
</p>
</p>

## Table of Contents

Expand Down

0 comments on commit 87c26eb

Please sign in to comment.