-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (27 loc) · 844 Bytes
/
publish.yml
File metadata and controls
36 lines (27 loc) · 844 Bytes
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
name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: checkout project
uses: actions/checkout@v2
- name: setup msbuild
uses: microsoft/setup-msbuild@v1
- name: setup nuget
uses: NuGet/setup-nuget@v1.0.2
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: setup cppwinrt
run: nuget restore test.sln
- name: build x86
run: msbuild /m /p:Configuration=Release,Platform=x86 test.sln
- name: build x64
run: msbuild /m /p:Configuration=Release,Platform=x64 test.sln
- name: nuget pack
run: nuget.exe pack TestComponent/TestComponent.nuspec -OutputFileNamesWithoutVersion
- name: nuget push
run: nuget push KennyKerr.Windows.TestWinRT.nupkg ${{ secrets.NUGET_KEY }} -Source nuget.org