From 7206fdc6deda6e1783ffe71c22c134189e9f5925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=88=90=E9=94=B4?= <243852814@qq.com> Date: Sat, 16 Apr 2022 18:29:44 +0800 Subject: [PATCH] fix(ci): fix package publish error --- .github/workflows/release.yml | 16 ++++++++++------ .goreleaser.yaml | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) 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 }}/