Skip to content

Commit 71be49e

Browse files
committed
Release: v0.1.1
1 parent 2452c99 commit 71be49e

File tree

4 files changed

+95
-2
lines changed

4 files changed

+95
-2
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: "1.23"
24+
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v6
27+
with:
28+
distribution: goreleaser
29+
version: latest
30+
args: release --clean
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ test
44
*.test
55
test.go
66
.env
7+
8+
# Binary
9+
tabby
10+
tabby.exe
11+
dist/

.goreleaser.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# GoReleaser configuration for tabby
2+
# Documentation: https://goreleaser.com
3+
4+
version: 2
5+
6+
before:
7+
hooks:
8+
- go mod tidy
9+
10+
builds:
11+
- id: tabby
12+
main: ./main.go
13+
binary: tabby
14+
env:
15+
- CGO_ENABLED=0
16+
goos:
17+
- linux
18+
- darwin
19+
- windows
20+
goarch:
21+
- amd64
22+
- arm64
23+
ldflags:
24+
- -s -w
25+
- -X github.com/nhdfr/tabby/cmd.Version={{.Version}}
26+
27+
archives:
28+
- id: tabby
29+
builds:
30+
- tabby
31+
format: tar.gz
32+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
33+
format_overrides:
34+
- goos: windows
35+
format: zip
36+
37+
checksum:
38+
name_template: "checksums.txt"
39+
40+
changelog:
41+
sort: asc
42+
filters:
43+
exclude:
44+
- "^docs:"
45+
- "^test:"
46+
- "^chore:"
47+
48+
release:
49+
github:
50+
owner: nhdfr
51+
name: tabby
52+
draft: false
53+
prerelease: auto

cmd/root.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import (
66
"github.com/spf13/cobra"
77
)
88

9+
var Version = "0.1.1"
10+
911
var rootCmd = &cobra.Command{
10-
Use: "tabby",
11-
Short: "A powerful terminal-based HTTP testing and stress testing tool",
12+
Use: "tabby",
13+
Short: "A powerful terminal-based HTTP testing and stress testing tool",
14+
Version: Version,
1215
Long: `Tabby is a terminal-based HTTP testing and stress testing tool with automated data generation capabilities.
1316
1417
Features:

0 commit comments

Comments
 (0)