Skip to content

Commit

Permalink
add release
Browse files Browse the repository at this point in the history
  • Loading branch information
zc2638 committed Apr 11, 2022
1 parent d5f85b0 commit 06db26e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

- name: build
run: |
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o release/ddshop_darwin_amd64 cmd/ddshop/main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o release/ddshop_darwin_arm64 cmd/ddshop/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o release/ddshop_linux_amd64 cmd/ddshop/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o release/ddshop_linux_arm64 cmd/ddshop/main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o release/ddshop_windows_amd64.exe cmd/ddshop/main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o release/ddshop_darwin_amd64 github.com/zc2638/ddshop/cmd/ddshop
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o release/ddshop_darwin_arm64 github.com/zc2638/ddshop/cmd/ddshop
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o release/ddshop_linux_amd64 github.com/zc2638/ddshop/cmd/ddshop
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o release/ddshop_linux_arm64 github.com/zc2638/ddshop/cmd/ddshop
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o release/ddshop_windows_amd64.exe github.com/zc2638/ddshop/cmd/ddshop
- name: Release
uses: softprops/action-gh-release@v1
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
此程序提供自动化抢购,若非难以存活,请给他人留一些机会!

## 安装
### Releases
[Github Release](https://github.com/zc2638/ddshop/releases) 下载
### 源码
```shell
go install github.com/zc2638/ddshop/cmd/ddshop@latest
```
Expand Down

0 comments on commit 06db26e

Please sign in to comment.