-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (34 loc) · 1.26 KB
/
onVersionTag.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
name: OnVersionTag
on:
push:
tags:
- '*'
jobs:
windows:
strategy:
matrix:
configuration: [ Release ]
runs-on: windows-latest
env:
Solution_Name: BFF.DataVirtualizingCollection.sln # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: Tests.Unit\Tests.Unit.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.102
- run: set DOTNET_CLI_TELEMETRY_OPTOUT=1
- name: Install dependencies
run: dotnet restore .\BFF.DataVirtualizingCollection.sln
- name: Build
run: dotnet build .\BFF.DataVirtualizingCollection.sln --configuration Release --no-restore
- name: Test
run: dotnet test .\Tests.Unit\Tests.Unit.csproj --no-restore --verbosity normal
- name: Publish to NuGet
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: BFF.DataVirtualizingCollection/BFF.DataVirtualizingCollection.csproj
VERSION_FILE_PATH: Directory.Build.props
TAG_COMMIT: false
NUGET_KEY: ${{secrets.NUGET_API_KEY}}