-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.23 KB
/
dotnet.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
36
37
38
39
40
41
42
43
# .NET SDK
# Includes NuGet package update for master branch.
# 2023.04.05
name: .NET
on:
push:
branches: [ "develop", "release", "master" ]
defaults:
run:
working-directory: src
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: |
dotnet build --no-restore -c release ./BOG.DropZone/BOG.DropZone.csproj
- name: NuGet package publish (BOG.DropZone.Common)
if: github.event.ref == 'refs/heads/master'
env:
NGKEY: ${{ secrets.NUGET_API_KEY }}
NGSRC: ${{ vars.NUGET_SOURCE }}
run: |
dotnet nuget push ./BOG.DropZone.Common/bin/release/BOG.DropZone.Common.*.nupkg --api-key ${NGKEY} --source ${NGSRC} --skip-duplicate
- name: NuGet package publish (BOG.DropZone.Client)
if: github.event.ref == 'refs/heads/master'
env:
NGKEY: ${{ secrets.NUGET_API_KEY }}
NGSRC: ${{ vars.NUGET_SOURCE }}
run: |
dotnet nuget push ./BOG.DropZone.Client/bin/release/BOG.DropZone.Client.*.nupkg --api-key ${NGKEY} --source ${NGSRC} --skip-duplicate