Skip to content

Commit

Permalink
add: goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-oster committed Jan 19, 2025
1 parent 06a7716 commit 6e8943b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: goreleaser

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

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.idea
.idea/
dist/
22 changes: 22 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

before:
hooks:
- go mod tidy

builds:
- goos:
- windows
- darwin
ignore:
- goos: darwin
goarch: amd64

archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip

0 comments on commit 6e8943b

Please sign in to comment.