-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipeline-pullrequests.yml
59 lines (47 loc) · 1.35 KB
/
azure-pipeline-pullrequests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
pr:
- main
pool:
vmImage: 'macOS-13'
steps:
- bash: |
sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
displayName: pin xcode version to 15.2
- task: UseDotNet@2
inputs:
packageType: 'sdk'
useGlobalJson: true
- bash: |
echo "##vso[build.updatebuildnumber]pullrequests-xamarin-revenuecat-ios-$(Build.SourceBranchName)-$(Build.BuildId)"
displayName: Set Build Number
- bash: |
sudo dotnet workload restore
displayName: Restore workloads
- bash: |
cd Tonestro.Maui.RevenueCat.iOS
dotnet build -c Release
dotnet pack -c Release
displayName: "Tonestro.Maui.RevenueCat.iOS: Build Release Nuget"
- bash: |
cd Tonestro.Maui.RevenueCat.iOS.Extensions
dotnet build -c Release
dotnet pack -c Release
displayName: "Tonestro.Maui.RevenueCat.iOS.Extensions: Build Release Nuget"
- bash: |
./copy-nugets.sh
displayName: "Copy nugets to nugetoutput folder"
- bash: |
cd local-nugets
cp ../nugetoutput/Tonestro.Maui.RevenueCat.iOS.*.nupkg .
cd ..
displayName: copy nugets to local-nugets
- bash: |
cd Xamarin.RevenueCat.iOS.UsageChecker
dotnet build
displayName: Build UsageChecker
- task: PublishBuildArtifacts@1
displayName: publish nugetoutput
inputs:
PathtoPublish: 'nugetoutput'
ArtifactName: 'nugetoutput'
publishLocation: 'Container'
StoreAsTar: true