Skip to content

Commit 08b00f2

Browse files
committed
chore: release v0.0.1
1 parent 7493af0 commit 08b00f2

File tree

8 files changed

+193
-4
lines changed

8 files changed

+193
-4
lines changed

.github/workflows/release.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
permissions:
4+
id-token: write
5+
contents: write
6+
7+
on:
8+
push:
9+
tags:
10+
- "v*"
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
# 检出代码
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # 官方推荐,确保完整的历史记录,GoReleaser 需要使用 tag 信息
22+
23+
# 设置 Go 环境,使用 go.mod 中定义的版本
24+
- name: Set up Go
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version-file: "go.mod" # 自动读取 go.mod 中的 Go 版本
28+
29+
# 运行 GoReleaser 来构建、打包和发布版本
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v5
32+
with:
33+
distribution: goreleaser # GoReleaser 的发行版本
34+
version: latest # 使用最新版本的 GoReleaser
35+
args: release --clean # 发布并清理临时文件
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub token 授权 GoReleaser 发布版本

.goreleaser.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
project_name: go-swd
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
7+
# 打包归档配置
8+
archives:
9+
- format: zip
10+
name_template: "{{ .ProjectName }}_{{ .Version }}_src" # 源代码包名称
11+
files:
12+
- "*.go" # 包含所有 .go 文件
13+
- "pkg/**" # 包含 pkg 目录
14+
- "README.md" # 包含 README 文件
15+
- "LICENSE" # 包含 LICENSE 文件
16+
- "go.mod" # 包含 go.mod 文件
17+
- "go.sum" # 包含 go.sum 文件
18+
19+
# 发布配置:上传到 GitHub Releases
20+
release:
21+
github:
22+
owner: kirklin # GitHub 用户名/组织名
23+
name: go-swd # 仓库名称
24+
25+
# Changelog 配置:生成发布说明
26+
changelog:
27+
use: github
28+
sort: asc
29+
filters:
30+
exclude:
31+
- "^test:" # 排除以 "test:" 开头的提交信息
32+
- "^chore" # 排除 "chore" 提交信息
33+
- "merge conflict"
34+
- Merge pull request
35+
- Merge remote-tracking branch
36+
- Merge branch
37+
- go mod tidy
38+
groups:
39+
- title: "New Features"
40+
regexp: "^.*feat[(\\w)]*:+.*$"
41+
order: 100
42+
- title: "Bug fixes"
43+
regexp: "^.*fix[(\\w)]*:+.*$"
44+
order: 200
45+
- title: "Dependency updates"
46+
regexp: "^.*chore\\(deps\\)*:+.*$"
47+
order: 300
48+
- title: "Documentation updates"
49+
regexp: "^.*docs[(\\w)]*:+.*$"
50+
order: 400
51+
- title: "Other work"
52+
order: 9999
53+
54+
# 不需要生成可执行文件,因此不需要 builds 配置
55+
builds: []
56+
57+
# 版本号公告配置
58+
announce:
59+
skip: false

pkg/dictionary/default/drugs.txt

+19
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,22 @@ K粉
2121
毒鬼
2222
毒资
2323
毒窝
24+
0售k粉qq
25+
0售麻古
26+
0售麻果
27+
1氯丙酮
28+
1氯乙醛
29+
1甲基23吡啶基吡咯烷
30+
1氯丙酮供应
31+
1氯丙酮销售
32+
1氯乙醛供应
33+
1氯乙醛销售
34+
2012甲基苯丙胺价格
35+
242异酸甲苯酯
36+
242硝基邻甲酚
37+
2乙酰吗啡
38+
2亚甲基双氧安非他明
39+
2乙基汞
40+
2丁基氧化锡
41+
2乙基酰胺
42+
2吡咯酮

pkg/dictionary/default/gambling.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@
2727
赌技
2828
赌运
2929
赌金
30-
赌本
30+
赌本
31+
10bet娱乐城
32+
12博娱乐城
33+
188金宝博娱乐城

pkg/dictionary/default/political.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,11 @@ gong和
323323
朱容基
324324
法轮功
325325
李洪志
326-
新疆骚乱
326+
新疆骚乱
327+
1党专制
328+
1党独裁
329+
1党专政
330+
1党执政
331+
2010诺贝尔和平奖
332+
23条
333+
2008年灾年

pkg/dictionary/default/pornography.txt

+27-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ av女优
8585
裸聊网址
8686
裸聊链接
8787
裸聊地址
88-
裸聊入口
88+
裸聊入口
8989
爱液
9090
按摩棒
9191
拔出来
@@ -389,4 +389,29 @@ g点
389389
h动画
390390
h动漫
391391
失身粉
392-
淫荡自慰器
392+
淫荡自慰器
393+
1夜情交友
394+
1夜情服务
395+
1对1裸聊
396+
1本道av
397+
1夜情裸聊室
398+
1夜情裸聊网
399+
1夜激情
400+
1对1裸聊视频
401+
1本道性爱视频
402+
1本道成人视频
403+
1点色成人网
404+
1本道成人影讯
405+
1本道无码合集
406+
20dy淫色贴图
407+
24小时上门性交
408+
21dy淫色贴图
409+
22dy淫色贴图
410+
23dy淫色贴图
411+
24dy淫色贴图
412+
25dy淫色贴图
413+
26dy淫色贴图
414+
1夜性网
415+
1元激情电影
416+
1夜情ons
417+
1夜情上门

pkg/dictionary/default/scam.txt

+35
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,38 @@
2828
诈骗银行卡
2929
诈骗资金
3030
诈骗钱财
31+
007手机防盗软件任意显软件
32+
007间谍专业版
33+
007间谍增强版
34+
007间谍改良版
35+
007间谍破解版
36+
1代假冒身份证
37+
1代假身份证
38+
1元假币出售
39+
1元假币销售
40+
1元假硬币专卖
41+
1元假硬币出售
42+
1元假硬币批发
43+
1元硬币模具出售
44+
1切证件
45+
1字开锁工具批发qq
46+
1字强开工具出售
47+
1手车主信息
48+
1手车主资料
49+
1手车主名录
50+
2012高考答案出售
51+
2012高考作弊器
52+
2012考生资料qq
53+
2013中考考生落榜信息
54+
2012高考代考
55+
2012高考助考答案
56+
2012高考无线作弊器
57+
2012高考真题出售
58+
2代假冒身份证
59+
2代证制作qq
60+
2代身份证出售
61+
2手套牌车出售
62+
2代证制作软件
63+
2代身份证专卖
64+
2代身份证批发
65+
2代身份证销售

version/version.go

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package version
2+
3+
// Version is the current version of the go-swd
4+
var Version = "v0.0.1" // 默认版本号,可通过 ldflags 修改

0 commit comments

Comments
 (0)