forked from anton-gogolev/nlog.loki
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (34 loc) · 894 Bytes
/
publish.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
name: Publish
on:
push:
tags:
- "*"
jobs:
build:
env:
# Nuget package version taken from the tag itself
version: ${{github.ref_name}}
name: Publish NuGet Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install Dependencies
run: dotnet restore .\\src\\NLog.Loki.sln
- name: Build
run: dotnet build .\\src\\NLog.Loki.sln --configuration Release --no-restore
- name: Publish
id: publish
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: ./src/NLog.Loki/NLog.Loki.csproj
VERSION_STATIC: ${{env.version}}
NUGET_KEY: ${{secrets.NUGET_KEY}}
INCLUDE_SYMBOLS: true
TAG_COMMIT: false