diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d117fa2 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/cmd/root.go b/cmd/root.go index 48c2adc..2a95aaf 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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.", } diff --git a/go.mod b/go.mod index bca63bf..12c6a2a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module email-linter -go 1.21.1 +go 1.21 require github.com/spf13/cobra v1.8.0