From c6724044311235d0c9671a025e0678887f70ae7f Mon Sep 17 00:00:00 2001 From: Kaan Karakaya Date: Sun, 8 Aug 2021 12:44:44 +0300 Subject: [PATCH] Add Goreleaser Signed-off-by: Kaan Karakaya --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 2 ++ .goreleaser.yml | 30 ++++++++++++++++++++++++++++++ Readme.md | 6 +++++- 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml create mode 100644 .gitignore create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5741115 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cde0123 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..aae3c12 --- /dev/null +++ b/.goreleaser.yml @@ -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:' diff --git a/Readme.md b/Readme.md index c88f683..5682459 100644 --- a/Readme.md +++ b/Readme.md @@ -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) \ No newline at end of file +## 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) \ No newline at end of file