File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: Build UnconfuserEx
33on :
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
1111jobs :
1212 build :
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 / # 发布项目
You can’t perform that action at this time.
0 commit comments