File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,10 +55,38 @@ jobs:
5555 run : |
5656 dotnet restore FastGithub.sln
5757 dotnet build FastGithub.sln --configuration Release --verbosity quiet
58-
59- - name : Publish single-file artifacts
60- run : dotnet publish FastGithub/FastGithub.csproj -c Release -r ${{ matrix.runtime }} --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish/${{ matrix.runtime }}
61-
58+
59+ - name : Publish single-file artifacts with UI
60+ run : |
61+ # 发布主程序
62+ dotnet publish FastGithub/FastGithub.csproj \
63+ -c Release \
64+ -r ${{ matrix.runtime }} \
65+ --self-contained true \
66+ -p:PublishSingleFile=true \
67+ -p:PublishTrimmed=true \
68+ -o ./publish/${{ matrix.runtime }}
69+
70+ # 发布 UI (仅 Windows)
71+ if [ "${{ matrix.runtime }}" == "win-x64" ]; then
72+ dotnet publish FastGithub.UI/FastGithub.UI.csproj \
73+ -c Release \
74+ -r win-x64 \
75+ --self-contained true \
76+ -p:PublishSingleFile=true \
77+ -o ./publish/${{ matrix.runtime }}
78+ fi
79+
80+ - name : Copy additional files
81+ run : |
82+ # 复制必要的配置文件和资源
83+ cp README.md ./publish/${{ matrix.runtime }}/
84+ cp README.html ./publish/${{ matrix.runtime }}/
85+ cp LICENSE ./publish/${{ matrix.runtime }}/
86+
87+ # 创建证书目录(运行时需要)
88+ mkdir -p ./publish/${{ matrix.runtime }}/cacert
89+
6290 - name : Upload artifacts
6391 uses : actions/upload-artifact@v4
6492 with :
You can’t perform that action at this time.
0 commit comments