Skip to content

Commit

Permalink
Merge pull request #3 from winebarrel/introduce_goreleaser
Browse files Browse the repository at this point in the history
Introduce goreleaser
  • Loading branch information
winebarrel committed Jan 5, 2024
2 parents 0c50d3a + 32b8b35 commit 21cce11
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/goreleaser.yml
@@ -0,0 +1,29 @@
name: goreleaser
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

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
with:
go-version-file: go.mod
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .goreleaser.yml
@@ -0,0 +1,20 @@
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/las
ldflags:
- -X main.version={{.Version}}
env:
- CGO_ENABLED=0
checksum:
name_template: "checksums.txt"
brews:
- repository:
owner: winebarrel
name: homebrew-las
homepage: https://github.com/winebarrel/las
description: Retrieves a list of all email addresses that are on the suppression list for Amazon SES.
license: MIT
install: |
bin.install 'las'

0 comments on commit 21cce11

Please sign in to comment.