diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6e1332..1f6276d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,14 @@ name: 发版 on: - workflow_dispatch: - inputs: - build: - description: '发版,请输入true' - required: true - default: 'true' + push: + tags: + - 'v*' +# workflow_dispatch: +# inputs: +# build: +# description: '发版,请输入true' +# required: true +# default: 'true' # version_description: # description: '输入版本描述' # required: true @@ -38,3 +41,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} FURY_TOKEN: ${{ secrets.FURY_TOKEN }} + FURY_USER_NAME: at0m diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a734f84..ed840bd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -34,7 +34,7 @@ release: 此处是版本介绍 footer: | - ## 谢谢! + ## 感谢您的支持! 以上就是在 {{ .Tag }} 上的改动! name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}" @@ -83,4 +83,4 @@ publishers: ids: - packages dir: "{{ dir .ArtifactPath }}" - cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/netdevops/ + cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/{{ .Env.FURY_USER_NAME }}/