-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.34 KB
/
release.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
44
45
46
47
48
name: publish
on:
release:
types: [published]
branches:
- master # Default release branch
jobs:
publish:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
steps:
- name: checkout
uses: actions/checkout@master
- name: install dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: install packages
run: dotnet restore
- name: build
run: dotnet build
- name: test
run: dotnet test
- name: publish ModelResult
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/ModelResult/Byndyusoft.ModelResult.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
TAG_COMMIT: false
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
- name: publish ModelResult.AspNetCore
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/ModelResult.AspNetCore/Byndyusoft.ModelResult.AspNetCore.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
TAG_COMMIT: false
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true