Skip to content

Commit

Permalink
add goreleaser action
Browse files Browse the repository at this point in the history
  • Loading branch information
brianstrauch committed Jul 5, 2021
1 parent 83ab060 commit ae6ebd6
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/go.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-go@v2
with:
go-version: 1.16

- uses: goreleaser/goreleaser-action@v2.6.1
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build
run: go build

- name: Test
run: go test -v ./...

0 comments on commit ae6ebd6

Please # to comment.