Skip to content

Commit

Permalink
Add go releaser action (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
retr0h committed Dec 2, 2023
1 parent 18835d5 commit c61a15f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: goreleaser
on:
push:
tags:
- "v*"

permissions:
contents: write
# packages: write
# issues: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: stable
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ changelog:
exclude:
- '^docs:'
- '^test:'
brews:
- repository:
owner: retr0h
name: homebrew-tap
folder: Formula
goarm: "7"
homepage: https://github.com/retr0h/go-gilt
description: A GIT layering tool
license: MIT
test: |
system "#{bin}/goreleaser -v"
dependencies:
- name: go
type: optional
- name: git

0 comments on commit c61a15f

Please sign in to comment.