35 строки
883 B
YAML
35 строки
883 B
YAML
image: Visual Studio 2022
|
|
configuration: Release
|
|
|
|
branches:
|
|
only:
|
|
- main
|
|
- master
|
|
|
|
install:
|
|
- choco install gitversion.portable -pre -y
|
|
- ps: gitversion /l console /output buildserver /config .github\gitversion.yml
|
|
- ps: $env:VersionMajor = $env:GitVersion_Major
|
|
- ps: $env:VersionMinor = $env:GitVersion_Minor
|
|
- ps: $env:VersionPatch = $env:GitVersion_Patch
|
|
- ps: $env:Version = $env:GitVersion_MajorMinorPatch
|
|
- ps: $env:FileVersion = $env:GitVersion_AssemblySemFileVer
|
|
- ps: $env:PackageVersion = $env:GitVersion_SemVer
|
|
- ps: $env:AssemblyVersion = $env:GitVersion_AssemblySemVer
|
|
- ps: $env:InformationalVersion = $env:GitVersion_InformationalVersion
|
|
|
|
dotnet_csproj:
|
|
patch: false
|
|
|
|
before_build:
|
|
- cmd: dotnet restore
|
|
|
|
build:
|
|
project: package.sln
|
|
parallel: true
|
|
verbosity: minimal
|
|
|
|
artifacts:
|
|
- path: '**\Unity.*.nupkg'
|
|
name: 'Container'
|