更新时间:2024-01-23 GMT+08:00

使用yaml配置mono构建

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
version: 2.0 # 必须是2.0
steps:
  BUILD:
    - mono:
        inputs:
            command: |
                nuget sources Disable -Name 'nuget.org' 
                nuget sources add -Name 'xxcloud' -Source 'https://repo.xxcloud.com/repository/nuget/v3/index.json' 
                nuget restore
                msbuild /p:OutputPath=../buildResult/Release/bin
                zip -rq ./archive.zip ./buildResult/Release/bin/*

参数名

参数类型

描述

是否必填

默认值

command

string

执行命令。