Skip to content

Commit

Permalink
Update Release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
haishen668 committed Nov 1, 2024
1 parent 2b74c61 commit 6e1ef7c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 查找并上传插件 JAR 📦
run: |
jars=$(find target -name '*.jar' ! -name 'original*.jar' -print0 | xargs -0 -I {} echo "{\"path\":\"{}\"}")
echo "[${jars}]" > files.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 发布 JAR 文件
- name: 上传插件 JAR 📦
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.tag }} # 使用手动输入的标签名
files: |
$(cat files.json)
target/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6e1ef7c

Please sign in to comment.