Skip to content

Commit

Permalink
Set up a GoReleaser action
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelercj committed Jan 11, 2024
1 parent 60d4512 commit 53d6077
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: goreleaser

on:
push:
tags:
- '*'

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@v4
with:
go-version: 'stable'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func runFunc(cmd *cobra.Command, args []string) {
// rootCmd represents the base command when called without any subcommands.
var rootCmd = &cobra.Command{
Use: "email-linter",
Version: "0.0.2",
Version: "0.0.3",
Run: runFunc,
Short: "Easily find spam and phishing emails received at single-use email addresses.",
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module email-linter

go 1.21.1
go 1.21

require github.com/spf13/cobra v1.8.0

Expand Down

0 comments on commit 53d6077

Please sign in to comment.