-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (35 loc) · 1012 Bytes
/
build.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: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Info
run: echo 'Building ${{ github.ref }}'
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.100
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '8.0'
- name: Build & Test
run: make test config=Release
publish:
if: contains(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Info
run: echo 'Building ${{ github.ref }}'
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.100
- name: Build nuget
run: make nuget config=Release version=${GITHUB_REF#refs/tags/}
- name: publish nuget
run: make publish nugetkey=${{secrets.NUGET_KEY}}