Skip to content

Commit

Permalink
feat: 添加文档
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf committed Dec 11, 2022
1 parent 11b05a8 commit 2e4f037
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 49 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/build-release.yml

This file was deleted.

32 changes: 31 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,34 @@ jobs:
# 给清单打上多个标签
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:${{ steps.date.outputs.today }}
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:latest
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:latest
update_release_draft:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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/[email protected]
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 # 需要包含的额外文件
22 changes: 0 additions & 22 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 2e4f037

Please sign in to comment.