-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (36 loc) · 1.02 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
ARTIFACT_PATH: artifacts
#VERSION: "1.0.0-ci"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Environment
run: env
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release -r ${{ env.ARTIFACT_PATH }} --no-build -l trx --verbosity=normal
- name: Pack
run: dotnet pack -c Release -o ${{ env.ARTIFACT_PATH }} --no-build
#- name: Publish
# run: dotnet nuget push ${{ env.ARTIFACT_PATH }}/*.nupkg --api-key ${{ secrets.PUBLISH_PKG_KEY }} --source https://nuget.pkg.github.com/matthiasguentert/index.json
- name: Artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: ${{ env.ARTIFACT_PATH }}/**/*