Skip to content

Commit

Permalink
go releaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwormhole committed Dec 23, 2024
1 parent 3bd8802 commit daac70b
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches: [main]
tags:
- 'v*'

name: GoReleaser
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 changes: 44 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
project_name: Laverna

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64

checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.sha256"

nfpms:
- maintainer: F. Talha Altinel <[email protected]>
description: CLI for language learners
homepage: https://github.com/lingua-sensei/laverna
license: MIT
formats:
- deb
- rpm
- apk

archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
format: zip

changelog:
sort: "asc"
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- "Merge pull request"
- "Merge branch"

0 comments on commit daac70b

Please sign in to comment.