Skip to content

Commit

Permalink
fix(ci): fix package publish error
Browse files Browse the repository at this point in the history
  • Loading branch information
asjdf committed Apr 16, 2022
1 parent e1c44ef commit 7206fdc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -38,3 +41,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
FURY_USER_NAME: at0m
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ release:
此处是版本介绍
footer: |
## 谢谢!
## 感谢您的支持!
以上就是在 {{ .Tag }} 上的改动!
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
Expand Down Expand Up @@ -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 }}/

0 comments on commit 7206fdc

Please sign in to comment.