-
-
Notifications
You must be signed in to change notification settings - Fork 20
32 lines (26 loc) · 851 Bytes
/
Copy pathbuild.yml
File metadata and controls
32 lines (26 loc) · 851 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
name: .NET Core Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-2022
environment: release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v7
- name: Setup .NET Core
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x
- name: Build DNTCommon.Web.Core lib
run: dotnet build ./src/DNTCommon.Web.Core/DNTCommon.Web.Core.csproj --configuration Release
- name: NuGet Login via OIDC
if: github.event_name == 'push'
id: login
uses: NuGet/login@v1
with:
user: ${{ secrets.NUGET_USER }}
- name: Push Package to NuGet.org
if: github.event_name == 'push'
run: dotnet nuget push **\*.nupkg -k ${{ steps.login.outputs.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate