-
Notifications
You must be signed in to change notification settings - Fork 36
24 lines (23 loc) · 904 Bytes
/
release.yaml
File metadata and controls
24 lines (23 loc) · 904 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
name: ReleaseBuild
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.x
- name: Install dependencies
run: dotnet restore src\SharpWebview\SharpWebview.csproj
- name: Build
run: dotnet build src\SharpWebview\SharpWebview.csproj --configuration Release
- name: Package nuget
run: dotnet pack src\SharpWebview\SharpWebview.csproj --configuration Release
- name: Package AOT nuget
run: dotnet pack src\SharpWebview\SharpWebview.csproj --configuration Release -p:PublishAot=true -p:PackageId=SharpWebview.Aot
- name: Push nuget
run: dotnet nuget push src\SharpWebview\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols