-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (28 loc) · 949 Bytes
/
cd-build.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
name: cd-build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: 'Get Version'
id: version
uses: battila7/[email protected]
- name: Build
run: |
msbuild /restore /t:Build,Pack src/WinUI.TableView/WinUI.TableView.csproj /p:Configuration=Release /p:PackageVersion=${{ steps.version.outputs.version-without-v }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: NuGet Packages
path: artifacts/NuGet/Release
- name: Push to NuGet
run: |
dotnet nuget push artifacts\NuGet\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://nuget.org
dotnet nuget push artifacts\NuGet\Release\*.snupkg -k ${{ secrets.NUGET_API_KEY }} -s https://nuget.org