-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (28 loc) · 953 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/checkout@v3
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: 'Get Version'
id: version
uses: battila7/get-version-action@v2
- name: Build
run: |
msbuild /restore /t:Build,Pack src/BlazorWebView.WinUI/BlazorWebView.WinUI.csproj /p:Configuration=Release /p:PackageVersion=${{ steps.version.outputs.version-without-v }}
- name: Upload artifacts
uses: actions/upload-artifact@v1
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