-
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (38 loc) · 1.34 KB
/
ci.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
name: 'Publish application'
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v2
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Test
run: dotnet test
- name: Publish NuGet
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master
uses: Rebel028/[email protected]
with:
PROJECT_FILE_PATH: DotNut/DotNut.csproj
NUGET_KEY: ${{secrets.NUGET_KEY}}
PACKAGE_NAME: DotNut
INCLUDE_SYMBOLS: false
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$
TAG_COMMIT: true
TAG_FORMAT: DotNut/v*
- name: Publish Github Package Registry
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master
uses: Rebel028/[email protected]
with:
PROJECT_FILE_PATH: DotNut/DotNut.csproj
NUGET_SOURCE: "https://nuget.pkg.github.com/Kukks"
NUGET_KEY: ${{secrets.GH_TOKEN}}
PACKAGE_NAME: DotNut
INCLUDE_SYMBOLS: false
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$
TAG_COMMIT: true
TAG_FORMAT: DotNut/v*