Skip to content

Commit

Permalink
add releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmmetz committed Apr 4, 2021
1 parent d7b5141 commit fb4d597
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release

on:
push:
tags: ['v*']

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: install go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: release
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 7 additions & 10 deletions .github/workflows/go.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: test

on:
push:
Expand All @@ -7,19 +7,16 @@ on:
branches: [ master ]

jobs:

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

- name: Set up Go
- name: checkout
uses: actions/checkout@v2
- name: install go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Build
go-version: 1.16
- name: build
run: go build -v ./...

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

0 comments on commit fb4d597

Please sign in to comment.