Skip to content

Commit

Permalink
Merge pull request #42 from stelligent/feature/github-actions
Browse files Browse the repository at this point in the history
feature/GitHub actions
  • Loading branch information
ryanpagel committed Oct 14, 2019
2 parents 1d63e6e + 7ba651e commit f92e6e0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,19 @@
name: Build

on:
push:
branches:
- '**'
tags-ignore:
- '**'

jobs:
build:
runs-on: ubuntu-latest
container: golang:1.12
steps:
- uses: actions/checkout@master
- name: dependencies
run: go mod download
- name: make test
run: make test
26 changes: 26 additions & 0 deletions .github/workflows/build_and_deploy.yml
@@ -0,0 +1,26 @@
name: Build & Deploy

on:
push:
tags:
- 'v*.*.*'
branches-ignore:
- '**'

jobs:
build:
runs-on: ubuntu-latest
container: golang:1.12
steps:
- uses: actions/checkout@master
- name: dependencies
run: go mod download
- name: make test
run: make test
- name: release
env:
GITHUB_TOKEN: ${{ secrets.goreleaser }}
if: success()
run: |
go get github.com/goreleaser/goreleaser
goreleaser release --skip-validate --skip-publish
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@
dist/
vendor/
*/*packr.go

.idea/

0 comments on commit f92e6e0

Please sign in to comment.