-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipeline-pullrequests.yml
54 lines (44 loc) · 1.33 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
pr:
- master
pool:
vmImage: "macOS-15"
steps:
- task: UseDotNet@2
inputs:
packageType: "sdk"
useGlobalJson: true
- bash: |
echo "##vso[build.updatebuildnumber]pullrequests-xamarin-revenuecat-android-$(Build.SourceBranchName)-$(Build.BuildId)"
displayName: Set Build Number
- bash: |
sudo dotnet workload restore
displayName: Restore workloads
- bash: |
cd Tonestro.Maui.RevenueCat.Android
dotnet build -c Release
dotnet pack -c Release
displayName: "Tonestro.Maui.RevenueCat.Android: Build Release Nuget"
- bash: |
cd Tonestro.Maui.RevenueCat.Android.Extensions
dotnet build -c Release
dotnet pack -c Release
displayName: "Tonestro.Maui.RevenueCat.Android.Extensions: Build Release Nuget"
- bash: |
./copy-nugets.sh
displayName: "Copy nugets to nugetoutput folder"
- bash: |
cd local-nugets
cp ../nugetoutput/Tonestro.Maui.RevenueCat.Android.*.nupkg .
cd ..
displayName: copy nugets to local-nugets
- bash: |
cd Xamarin.RevenueCat.Android.UsageChecker
dotnet build
displayName: Build UsageChecker
- task: PublishBuildArtifacts@1
displayName: publish nugetoutput
inputs:
PathtoPublish: "nugetoutput"
ArtifactName: "nugetoutput"
publishLocation: "Container"
StoreAsTar: true