# environment variables
environment:
  client_id:
    secure: 9BD/L7erIVKL9Hq7m1OhWPYJAM5lDks1KjUXQAnlPSp26nxkmIjs4/dD4AbPwu15
  client_secret:
    secure: iUXMftBIRRzPgeX8kg1Aw94cM8b/6+DNOwG6BWdSaH9NQDD/4Itg7dEUqvpDZ+Er

# version format
version: 0.1.0.{build}

# enable patching of AssemblyInfo.* files
assembly_info:
  patch: true
  file: "**\\AssemblyInfo.*"
  assembly_version: "{version}"
  assembly_file_version: "{version}"

# scripts to run before build
before_build:
  - nuget restore

# build configuration
build:
  project: Yotpo.Net.sln
  publish_nuget: true             # package projects with .nuspec files and push to artifacts
  verbosity: minimal               # MSBuild Verbosity level

# environment variables
environment:
  YOTPO_API_KEY:
    secure: 9BD/L7erIVKL9Hq7m1OhWPYJAM5lDks1KjUXQAnlPSp26nxkmIjs4/dD4AbPwu15
  YOTPO_API_SECRET:
    secure: iUXMftBIRRzPgeX8kg1Aw94cM8b/6+DNOwG6BWdSaH9NQDD/4Itg7dEUqvpDZ+Er

# version format
version: 0.1.0.{build}

# enable patching of AssemblyInfo.* files
assembly_info:
  patch: true
  file: "**\\AssemblyInfo.*"
  assembly_version: "{version}"
  assembly_file_version: "{version}"

# scripts to run before build
before_build:
  - nuget restore
  - ps: $creds = ConvertFrom-Json -InputObject (Gc .\src\lib\ClientCredentials.json -Raw)
  - ps: $creds.client_id = $env:YOTPO_API_KEY
  - ps: $creds.client_secret = $env:YOTPO_API_SECRET
  - ps: $creds | ConvertTo-Json | Out-File ".\src\lib\ClientCredentials.json"

# build configuration
build:
  project: Yotpo.Net.sln
  publish_nuget: true             # package projects with .nuspec files and push to artifacts
  verbosity: minimal               # MSBuild Verbosity level

Add script to before_build to use secure variables
Add script to before_build to use secure variables

PowerShell script replaces dummy client credentials with encrypted real ones so that Tests can run.