Skip to content

Commit

Permalink
chore: add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpig committed Dec 27, 2024
1 parent 345b39d commit 4e13574
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
tags:
- **

workflow_dispatch:
inputs:
version:
description: "Release version"
required: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: actions/setup-go@v5
with:
go-version: "1.22.5"

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: go run github.com/goreleaser/goreleaser/v2@latest release
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

builds:
- id: brownie
main: ./...
binary: brownie
env:
- CGO_ENABLED=1
targets:
- linux_amd64
- linux_arm64

archives:
- id: brownie
format: tar.gz
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- brownie

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

0 comments on commit 4e13574

Please sign in to comment.