From 8e0f6f7de8c9b6b30339480d36aaf07283a5bba1 Mon Sep 17 00:00:00 2001 From: eryajf Date: Sun, 11 Dec 2022 12:22:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E6=9E=84=E5=BB=BA=E4=BA=8C=E8=BF=9B=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-release.yml | 26 ++++++++++++++++++++++++++ README.md | 8 ++++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build-release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 00000000..843d386a --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,26 @@ +name: build + +on: + release: + types: [created] # 表示在创建新的 Release 时触发 + +jobs: + build-go-binary: + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin] # 需要打包的系统 + goarch: [amd64, arm64] # 需要打包的架构 + exclude: # 排除某些平台和架构 + - goarch: arm64 + goos: windows + steps: + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.30 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} # 一个默认的变量,用来实现往 Release 中添加文件 + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: 1.18 # 可以指定编译使用的 Golang 版本 + binary_name: "chatgpt-dingtalk" # 可以指定二进制文件的名称 + extra_files: LICENSE README.md # 需要包含的额外文件 \ No newline at end of file diff --git a/README.md b/README.md index 9aab6fce..2b443252 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
-

Chatgpt Dingtalk

+

ChatGPT Dingtalk

[![Auth](https://img.shields.io/badge/Auth-eryajf-ff69b4)](https://github.com/eryajf) [![Go Version](https://img.shields.io/github/go-mod/go-version/eryajf/chatgpt-dingtalk)](https://github.com/eryajf/chatgpt-dingtalk) @@ -10,7 +10,7 @@ [![Docker Pulls](https://img.shields.io/docker/pulls/eryajf/chatgpt-dingtalk)](https://hub.docker.com/r/eryajf/chatgpt-dingtalk) [![GitHub license](https://img.shields.io/github/license/eryajf/chatgpt-dingtalk)](https://github.com/eryajf/chatgpt-dingtalk/blob/main/LICENSE) -

🌉 在钉钉群聊中添加chatGPT机器人 🌉

+

🌉 在钉钉群聊中添加ChatGPT机器人 🌉


@@ -18,7 +18,7 @@ ## 前言 -最近chatGPT异常火爆,本项目可以将GPT机器人集成到钉钉群聊中。 +最近ChatGPT异常火爆,本项目可以将GPT机器人集成到钉钉群聊中。 `感谢:`这个项目借鉴了[wechatbot](https://github.com/869413421/wechatbot.git),wechatbot是一个能够集成到个人微信的GPT机器人。 @@ -77,7 +77,7 @@ $ docker run -itd --name chatgpt -p 8090:8090 -e ApiKey=xxxx -e SessionTimeout=6 $ cp config.dev.json config.json # 其中 config.dev.json 从项目的根目录获取 # 运行项目 -docker run -itd --name chatgpt -p 8090:8090 -v ./config.json:/app/config.json --restart=always docker.mirrors.sjtug.sjtu.edu.cn/eryajf/chatgpt-dingtalk:latest +docker run -itd --name chatgpt -p 8090:8090 -v `pwd`/config.json:/app/config.json --restart=always docker.mirrors.sjtug.sjtu.edu.cn/eryajf/chatgpt-dingtalk:latest ``` 其中配置文件参考下边的配置文件说明。