Work CI-CD
Temporarily disable publishing nuget helpers from main.
steps:
# check if managed helper files where changed
- - powershell: |
- git config --global user.email "nanoframework@outlook.com"
- git config --global user.name "nfbot"
+ # - powershell: |
+ # git config --global user.email "nanoframework@outlook.com"
+ # git config --global user.name "nfbot"
- $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$(GitHubToken)"))))"
+ # $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$(GitHubToken)"))))"
- $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-interpreter/commits/$(Build.SourceVersion)" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET
- Write-host "Files changed:"
- $commit.files | % {$_.filename}
+ # $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-interpreter/commits/$(Build.SourceVersion)" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET
+ # Write-host "Files changed:"
+ # $commit.files | % {$_.filename}
- if ( $commit.files.filename -like "*$(TargetBoard)/managed_helpers*" )
- {
- echo "##vso[task.setvariable variable=BUILD_NUGET_PACKAGE]true"
+ # if ( $commit.files.filename -like "*$(TargetBoard)/managed_helpers*" )
+ # {
+ # echo "##vso[task.setvariable variable=BUILD_NUGET_PACKAGE]true"
- $counter = $env:HelperPackageVersion
- $version = [int]$counter
- $packageVersion = "1.0." + $version.ToString()
+ # $counter = $env:HelperPackageVersion
+ # $version = [int]$counter
+ # $packageVersion = "1.0." + $version.ToString()
- echo "##vso[task.setvariable variable=PACKAGE_NUGET_VERSION]$packageVersion"
+ # echo "##vso[task.setvariable variable=PACKAGE_NUGET_VERSION]$packageVersion"
- Write-host "Package version is: $packageVersion"
- }
- else
- {
- echo "##vso[task.setvariable variable=BUILD_NUGET_PACKAGE]False"
- }
+ # Write-host "Package version is: $packageVersion"
+ # }
+ # else
+ # {
+ # echo "##vso[task.setvariable variable=BUILD_NUGET_PACKAGE]False"
+ # }
- condition: succeeded()
- displayName: Check if managed helpers files were changed
+ # condition: succeeded()
+ # displayName: Check if managed helpers files were changed
- template: azure-pipelines-templates/download-logo.yml@templates
