Merge pull request #391 from brodiep21/patch-1

Update azdo_windows.yml
This commit is contained in:
Gerald Versluis 2023-11-16 01:41:46 +01:00 коммит произвёл GitHub
Родитель 8d5b95d967 ebaa7136ba
Коммит 37fc32ec8e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -3,7 +3,7 @@ trigger:
variables:
BuildConfiguration: Release
DotNetVersion: 6.0.300
DotNetVersion: 8.0.100
VSVERSION: 17/pre
stages:
@ -38,7 +38,7 @@ stages:
inputs:
targetType: 'inline'
script: |
cd 6.0/Apps/WeatherTwentyOne/src/
cd 8.0/Apps/WeatherTwentyOne/src/
dotnet restore WeatherTwentyOne.sln
# https://docs.microsoft.com/en-us/dotnet/maui/android/deployment/overview
@ -47,7 +47,7 @@ stages:
inputs:
targetType: 'inline'
script: |
cd 6.0/Apps/WeatherTwentyOne/src
cd 8.0/Apps/WeatherTwentyOne/src
dotnet build -f net7.0-android -c Release
# Signing Android App : https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/mobile/app-signing?view=azure-devops&tabs=apple-install-during-build#sign-your-android-app
@ -55,8 +55,8 @@ stages:
- task: CopyFiles@2
inputs:
Contents: |
**\**\6.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net7.0-android\publish\*.apk
6.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net7.0-android\publish\*.apk
**\**\8.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net8.0-android\publish\*.apk
8.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net8.0-android\publish\*.apk
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
@ -96,7 +96,7 @@ stages:
inputs:
targetType: 'inline'
script: |
cd 6.0\Apps\WeatherTwentyOne\src\
cd 8.0\Apps\WeatherTwentyOne\src\
dotnet publish -f net7.0-windows10.0.19041.0 -c Release
# https://docs.microsoft.com/en-us/windows/msix/desktop/cicd-overview
@ -107,13 +107,13 @@ stages:
- task: CopyFiles@2
inputs:
Contents: |
**\**\6.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net7.0-windows10.0.19041.0\win10-x64/**/*.msix
6.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net7.0-windows10.0.19041.0\win10-x64/**/*.msix
**\**\8.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net8.0-windows10.0.19041.0\win10-x64/**/*.msix
8.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net8.0-windows10.0.19041.0\win10-x64/**/*.msix
TargetFolder: '$(Build.ArtifactStagingDirectory)'
#https://docs.microsoft.com/en-us/windows/msix/desktop/azure-dev-ops
#Create secret pipeline variable WindowsCertSecret with cert password
- script: '"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\SignTool" sign /fd SHA256 /f $(Agent.TempDirectory)/XamCATFidCert.pfx /p $(WindowsCertSecret) $(Build.ArtifactStagingDirectory)\6.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net7.0-windows10.0.19041.0\win10-x64\AppPackages\WeatherTwentyOne_1.0.0.0_Test\WeatherTwentyOne_1.0.0.0_x64.msix'
- script: '"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\SignTool" sign /fd SHA256 /f $(Agent.TempDirectory)/XamCATFidCert.pfx /p $(WindowsCertSecret) $(Build.ArtifactStagingDirectory)\8.0\Apps\WeatherTwentyOne\src\WeatherTwentyOne\bin\Release\net7.0-windows10.0.19041.0\win10-x64\AppPackages\WeatherTwentyOne_1.0.0.0_Test\WeatherTwentyOne_1.0.0.0_x64.msix'
displayName: 'Sign MSIX Package'
@ -121,4 +121,4 @@ stages:
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop_windows'
publishLocation: 'Container'
publishLocation: 'Container'