-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (27 loc) · 812 Bytes
/
main.yml
File metadata and controls
36 lines (27 loc) · 812 Bytes
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
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '9.0.x'
- name: Restore Solution
run: dotnet restore Lucene.DocumentMapper.sln
- name: Build Solution
run: dotnet build Lucene.DocumentMapper.sln
- name: Test Solution
run: dotnet test Lucene.DocumentMapper.sln
- name: Publish Lucene.Net.DocumentMapper
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: Lucene.Net.DocumentMapper/Lucene.Net.DocumentMapper.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true