Skip to content

Commit

Permalink
release action (#2)
Browse files Browse the repository at this point in the history
* release action

Signed-off-by: pschu <peter.schulten@dbschenker.com>

* release action

Signed-off-by: pschu <peter.schulten@dbschenker.com>
  • Loading branch information
pschulten authored Dec 10, 2021
1 parent 646a8eb commit 1cf252c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
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: goreleaser

on:
push:
tags:
- '*'

permissions:
contents: 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.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v1

- name: Test
- name: Build
run: go build ./...

- name: Perform CodeQL Analysis
Expand Down

0 comments on commit 1cf252c

Please sign in to comment.