Skip to content

Commit 8767389

Browse files
authored
Update release.yml
1 parent 483e8cf commit 8767389

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,27 @@ jobs:
8080
dotnet-version: '7.0.x'
8181

8282
- name: Restore dependencies
83-
run: dotnet restore FastGithub.sln
84-
85-
- name: Build and publish
86-
shell: bash
87-
run: |
88-
# 发布主程序
89-
dotnet publish FastGithub/FastGithub.csproj \
90-
-c Release \
91-
-r ${{ matrix.runtime }} \
92-
--self-contained true \
93-
-p:PublishSingleFile=true \
94-
-p:PublishTrimmed=true \
95-
-o ./publish/${{ matrix.runtime }}
96-
97-
# 发布 UI (仅 Windows)
98-
if [ "${{ matrix.runtime }}" == "win-x64" ]; then
99-
dotnet publish FastGithub.UI/FastGithub.UI.csproj \
100-
-c Release \
101-
-o ./publish/${{ matrix.runtime }}
102-
fi
103-
83+
run: dotnet restore FastGithub.sln
84+
85+
- name: Build and publish
86+
shell: bash
87+
run: |
88+
# 发布主程序
89+
dotnet publish FastGithub/FastGithub.csproj \
90+
-c Release \
91+
-r ${{ matrix.runtime }} \
92+
--self-contained true \
93+
-p:PublishSingleFile=true \
94+
-p:PublishTrimmed=true \
95+
-o ./publish/${{ matrix.runtime }}
96+
97+
# 发布 UI (仅 Windows)
98+
if [ "${{ matrix.runtime }}" == "win-x64" ]; then
99+
dotnet publish FastGithub.UI/FastGithub.UI.csproj \
100+
-c Release \
101+
-o ./publish/${{ matrix.runtime }}
102+
fi
103+
104104
- name: Create archive
105105
shell: bash
106106
run: |

0 commit comments

Comments
 (0)