-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add release and release-pre workflow
- Loading branch information
1 parent
e022bb3
commit 7d850b4
Showing
3 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*-pre" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Build linux-arm | ||
run: GOOS=linux GOARCH=arm go build -o mlb-linux-arm cmd/mlb/main.go | ||
- name: Build linux-arm64 | ||
run: GOOS=linux GOARCH=arm64 go build -o mlb-linux-arm64 cmd/mlb/main.go | ||
- name: Build linux-386 | ||
run: GOOS=linux GOARCH=386 go build -o mlb-linux-386 cmd/mlb/main.go | ||
- name: Build linux-amd64 | ||
run: GOOS=linux GOARCH=amd64 go build -o mlb-linux-amd64 cmd/mlb/main.go | ||
- name: Build darwin-arm64 | ||
run: GOOS=darwin GOARCH=arm64 go build -o mlb-darwin-arm64 cmd/mlb/main.go | ||
- name: Build darwin-amd64 | ||
run: GOOS=darwin GOARCH=amd64 go build -o mlb-darwin-amd64 cmd/mlb/main.go | ||
- name: Build windows-arm | ||
run: GOOS=windows GOARCH=arm go build -o mlb-windows-arm.exe cmd/mlb/main.go | ||
- name: Build darwin-arm64 | ||
run: GOOS=windows GOARCH=arm64 go build -o mlb-windows-arm64.exe cmd/mlb/main.go | ||
- name: Build windows-386 | ||
run: GOOS=windows GOARCH=386 go build -o mlb-windows-386.exe cmd/mlb/main.go | ||
- name: Build windows-amd64 | ||
run: GOOS=windows GOARCH=amd64 go build -o mlb-windows-amd64.exe cmd/mlb/main.go | ||
- name: List | ||
run: ls -al | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
prerelease: true | ||
files: | | ||
mlb-linux-arm | ||
mlb-linux-arm64 | ||
mlb-linux-386 | ||
mlb-linux-amd64 | ||
mlb-darwin-arm64 | ||
mlb-darwin-amd64 | ||
mlb-windows-arm.exe | ||
mlb-windows-arm64.exe | ||
mlb-windows-386.exe | ||
mlb-windows-amd64.exe | ||
LICENSE | ||
body_path: CHANGELOG.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
v0.5.0-pre | ||
1. fix document[EN] | ||
2. Github Action | ||
2. Github Actions | ||
3. CircleCI | ||
4. CodeCov | ||
5. Goreport | ||
6. fix command execute error handle logic | ||
7. auto release workflow - test | ||
7. auto release workflow |