Skip to content

Commit

Permalink
Add releases
Browse files Browse the repository at this point in the history
Add goreleaser and a github workflow for triggering a new release on a
new `v*` tag.
  • Loading branch information
dyson committed Oct 27, 2022
1 parent 8f8444a commit 21de6b7
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
builds:
- main: ./cmd/pipesore/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
archives:
- replacements:
darwin: macOS
386: i386
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

![version](https://img.shields.io/github/v/tag/dyson/pipesore?label=version)
[![test coverage](https://coveralls.io/repos/github/dyson/pipesore/badge.svg?branch=main)](https://coverallsio/github/dyson/pipesore?branch=main)
[![build workflow](https://github.com/dyson/pipesore/actions/workflows/build.yml/badge.svg)](https://github.com/dyson/pipesore/actions/workflows/build.yml)
[![build](https://github.com/dyson/pipesore/actions/workflows/build.yml/badge.svg)](https://github.com/dyson/pipesore/actions/workflows/build.yml)
[![release](https://github.com/dyson/pipesore/actions/workflows/release.yml/badge.svg)](https://github.com/dyson/pipesore/actions/workflows/release.yml)
[![license](https://img.shields.io/github/license/dyson/pipesore.svg)](https://github.com/dyson/pipesore/blob/master/LICENSE)

*Pipe* because it's similar to unix like pipes and *sore* because the initial
Expand Down

0 comments on commit 21de6b7

Please sign in to comment.