Skip to content

Commit

Permalink
Enable go-releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
icy committed Sep 17, 2020
1 parent fd7b034 commit e924dee
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: icy

on:
push:
branches-ignore:
- nothing-does-matter
branches:
- 'master'
tags:
- 'v*'
pull_request:

jobs:
smoke:
Expand All @@ -16,3 +19,23 @@ jobs:
- name: smoke
run: |
make tests
goreleaser:
if: success()
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: v0.143.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
builds:
- env:
- CGO_ENABLED=0
archives:
- replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64


checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"

0 comments on commit e924dee

Please sign in to comment.