-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (39 loc) · 1.78 KB
/
build-test-and-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
49
50
51
52
53
54
name: Build, Test, and Release
on:
push:
branches:
- main
jobs:
build_test_and_release:
name: Build, test, and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.101
- name: Install dependencies
run: dotnet restore jobba.sln
- name: Build
run: dotnet build jobba.sln --configuration Release --no-restore
- name: Test
run: dotnet test jobba.sln --logger GitHubActions --no-restore --verbosity normal --filter FullyQualifiedName\!~IntegrationTests
- name: Pack
run: dotnet pack **/Jobba.Core.csproj --configuration Release --output out/pack --no-build
- name: Pack
run: dotnet pack **/Jobba.MassTransit.csproj --configuration Release --output out/pack --no-build
- name: Pack
run: dotnet pack **/Jobba.Redis.csproj --configuration Release --output out/pack --no-build
- name: Pack
run: dotnet pack **/Jobba.Store.Mongo.csproj --configuration Release --output out/pack --no-build
- name: Pack
run: dotnet pack **/Jobba.Store.EF.csproj --configuration Release --output out/pack --no-build
- name: Pack
run: dotnet pack **/Jobba.Store.EF.Sql.csproj --configuration Release --output out/pack --no-build
- name: Pack
run: dotnet pack **/Jobba.Store.EF.Sqlite.csproj --configuration Release --output out/pack --no-build
- name: Pack
run: dotnet pack **/Jobba.Cron.csproj --configuration Release --output out/pack --no-build
- name: Publish
run: dotnet nuget push ./out/pack/*.nupkg --api-key ${{secrets.FIREBEND_NUGET_KEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json