-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): auto build and publish and fight with grammar police
- Loading branch information
Showing
6 changed files
with
59 additions
and
25 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,37 @@ | ||
name: 发版 | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
build: | ||
description: '发版,请输入true' | ||
required: true | ||
default: 'true' | ||
# version_description: | ||
# description: '输入版本描述' | ||
# required: true | ||
# default: '升级内容:性能优化 | bug修复' | ||
|
||
jobs: | ||
build: | ||
name: 编译并发布版本 | ||
runs-on: ubuntu-latest | ||
if: github.event.inputs.build == 'true' | ||
steps: | ||
- name: 准备代码 | ||
uses: actions/checkout@v2 | ||
|
||
- name: 准备编译环境 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: 运行GoReleaser发版 | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro' | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ hdu_cli | |
hdu-cli | ||
.hdu_cli.yaml | ||
.idea | ||
/vendor | ||
/vendor | ||
dist/ |
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
Oops, something went wrong.