Skip to content

Commit 1d08958

Browse files
authored
Update build.yml
1 parent 7c37920 commit 1d08958

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Build UnconfuserEx
33
on:
44
push:
55
branches:
6-
- master # 触发条件为推送到 master 分支
6+
- master # 触发条件为推送到 main 分支
77
pull_request:
88
branches:
9-
- master # 触发条件为提交 Pull Request 到 master 分支
9+
- master # 触发条件为提交 Pull Request 到 main 分支
1010

1111
jobs:
1212
build:
@@ -27,14 +27,5 @@ jobs:
2727
- name: Build project
2828
run: dotnet build --configuration Release # 编译项目
2929

30-
- name: Publish project to root directory
31-
run: dotnet publish --configuration Release --output ${{ github.workspace }} # 发布项目到仓库根目录
32-
33-
- name: List root directory (用于调试)
34-
run: dir ${{ github.workspace }} # 列出根目录中的文件,用于调试,确认发布文件是否存在
35-
36-
- name: Upload build artifacts
37-
uses: actions/upload-artifact@v2 # 上传构建文件到 GitHub Actions
38-
with:
39-
name: unconfuserex-build
40-
path: ${{ github.workspace }}/* # 上传仓库根目录中的所有文件
30+
- name: Publish project (可选)
31+
run: dotnet publish --configuration Release --output / # 发布项目

0 commit comments

Comments
 (0)