Skip to content

Commit

Permalink
feat: goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
theSuess committed Jun 22, 2021
1 parent 931d437 commit d945cac
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 68 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/build-container.yml

This file was deleted.

14 changes: 9 additions & 5 deletions .github/workflows/lint.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ~1.16
- uses: actions/checkout@v2
- run: go test ./...
golangci:
name: lint
runs-on: ubuntu-latest
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/misspell.yml

This file was deleted.

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

on:
push:
branches:
- 'master'
tags:
- 'v*'

permissions:
contents: write
packages: write

jobs:
goreleaser:
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.16
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
tmp/


dist/
distrust.yml

0 comments on commit d945cac

Please sign in to comment.