-
Notifications
You must be signed in to change notification settings - Fork 43
51 lines (51 loc) · 1.68 KB
/
Copy pathdotnet.yml
File metadata and controls
51 lines (51 loc) · 1.68 KB
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
49
50
51
name: Build & Publish to NuGet
on:
push:
branches:
- master
jobs:
build:
name: Build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack
- name: Publish AspNetCore
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/AspNetCore/AspNetCore.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<VersionPrefix>(.*)<\/VersionPrefix>\s*$
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Core
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/Core/Core.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<VersionPrefix>(.*)<\/VersionPrefix>\s*$
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish EFCore
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/EFCore/EFCore.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<VersionPrefix>(.*)<\/VersionPrefix>\s*$
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Stores
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/Stores/Stores.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<VersionPrefix>(.*)<\/VersionPrefix>\s*$
NUGET_KEY: ${{secrets.NUGET_API_KEY}}