Skip to content

Commit

Permalink
Add Goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Kaan Karakaya <[email protected]>
  • Loading branch information
TheYkk committed Aug 8, 2021
1 parent 51b1033 commit c672404
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
pull_request:
push:

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:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

dist/
30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is an example .goreleaser.yml 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 tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

This tool helps you to switch your git configuration easily.

[![asciicast](https://asciinema.org/a/429439.svg)](https://asciinema.org/a/429439)
## Switch Profile
[![asciicast](https://asciinema.org/a/429439.svg)](https://asciinema.org/a/429439)

## Create Profile
[![asciicast](https://asciinema.org/a/429492.svg)](https://asciinema.org/a/429492)

0 comments on commit c672404

Please sign in to comment.