Skip to content

Commit

Permalink
ci: add semantic release
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
MrMarble committed Jun 16, 2021
1 parent 474eef1 commit bdbf57b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 31 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Golang

on:
push:
branches:
- master
paths:
- "**.go"
pull_request:
branches:
- master



jobs:
golangci:
strategy:
matrix:
go-version: [1.14.x,1.16.x]
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.29

release:
needs: golangci
if: github.event_name == "push"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: go-semantic-release
uses: go-semantic-release/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
31 changes: 0 additions & 31 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit bdbf57b

Please sign in to comment.