-
Notifications
You must be signed in to change notification settings - Fork 13
85 lines (67 loc) · 2.58 KB
/
Copy pathdev_nuget.yml
File metadata and controls
85 lines (67 loc) · 2.58 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Publish to GitHub.com
on:
push:
branches:
- dev
paths-ignore:
- "README.md"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Nerdbank.GitVersioning to set version variables
uses: aarnott/nbgv@v0.3
with:
setAllVars: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.302"
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: MSBuild Restore x86
run: msbuild /t:restore /p:Configuration=ReleaseNuGet /p:Platform="x86" ColorPicker.sln
- name: MSBuild Build x86
run: msbuild /p:Configuration=ReleaseNuGet /p:Platform="x86" ColorPicker.sln
- name: MSBuild Restore x64
run: msbuild /t:restore /p:Configuration=ReleaseNuGet /p:Platform="x64" ColorPicker.sln
- name: MSBuild Build x64
run: msbuild /p:Configuration=ReleaseNuGet /p:Platform="x64" ColorPicker.sln
- name: MSBuild Restore ARM
run: msbuild /t:restore /p:Configuration=ReleaseNuGet /p:Platform="ARM" ColorPicker.sln
- name: MSBuild Build ARM
run: msbuild /p:Configuration=ReleaseNuGet /p:Platform="ARM" ColorPicker.sln
- name: MSBuild Restore ARM64
run: msbuild /t:restore /p:Configuration=ReleaseNuGet /p:Platform="ARM64" ColorPicker.sln
- name: MSBuild Build ARM64
run: msbuild /p:Configuration=ReleaseNuGet /p:Platform="ARM64" ColorPicker.sln
- name: Setup Nuget.exe
uses: nuget/setup-nuget@v1
- name: Pack
run: nuget pack ColorPicker.nuspec -version ${{ env.NBGV_Version }}-rc
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.NBGV_Version }}-rc
release_name: v${{ env.NBGV_Version }}-rc
draft: false
prerelease: true
- name: Update release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ColorPicker.Xamarin.Forms.${{ env.NBGV_Version }}-rc.nupkg
asset_name: ColorPicker.Xamarin.Forms.${{ env.NBGV_Version }}-rc.nupkg
asset_content_type: application/nupkg