File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 7676 /verbosity:minimal
7777 }
7878 shell : pwsh
79+
80+ - name : 上传
81+ uses : actions/upload-artifact@v4
82+ with :
83+ name : wechatferry-binaries
84+ path : |
85+ WeChatFerry/WeChatFerry/Out/*.dll
86+ WeChatFerry/WeChatFerry/Out/*.md
Original file line number Diff line number Diff line change 2222 - name : 检出代码
2323 uses : actions/checkout@v4
2424
25+ - name : 下载编译产物
26+ uses : actions/download-artifact@v4
27+ with :
28+ name : wechatferry-binaries
29+ path : tmp
30+
2531 - name : 获取版本号和微信版本号
2632 shell : pwsh
2733 run : |
@@ -36,29 +42,15 @@ jobs:
3642 - name : 打包输出文件及下载 WeChat 安装包
3743 shell : pwsh
3844 run : |
39- # 在根目录创建 tmp
40- New-Item -ItemType Directory -Force -Path tmp
41-
42- # Release 版的 spy.dll 和 sdk.dll
43- $rel = "WeChatFerry/WeChatFerry/x64/Release"
44- # Debug 版的 spy_debug.dll
45- $dbg = "WeChatFerry/WeChatFerry/x64/Debug"
46- # 项目根的 DISCLAIMER.md
47- $md = "WeChatFerry/WeChatFerry/DISCLAIMER.md"
48-
4945 Compress-Archive `
50- -Path "$rel/spy.dll","$rel/sdk.dll","$dbg/spy_debug.dll",$md `
46+ -Path "tmp/*" `
5147 -DestinationPath "tmp/v${{ env.version }}.zip"
5248
5349 # 下载对应版本微信安装包
5450 Invoke-WebRequest `
5551 -Uri "https://github.com/tom-snow/wechat-windows-versions/releases/download/v${{ env.wechat_version }}/WeChatSetup-${{ env.wechat_version }}.exe" `
5652 -OutFile "tmp/WeChatSetup-${{ env.wechat_version }}.exe"
5753
58- - name : 列出待发布文件
59- shell : pwsh
60- run : Get-ChildItem -Path tmp -Recurse
61-
6254 - name : 发布到 GitHub Releases
6355 uses : ncipollo/release-action@main
6456 with :
You can’t perform that action at this time.
0 commit comments