-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (37 loc) · 928 Bytes
/
github-action.yml
File metadata and controls
40 lines (37 loc) · 928 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
37
38
39
40
name: .NET
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Test
run: make test
- name: Create artifacts
run: make publish-zip
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist-service-zip
path: |
dist/*.zip
- name: Create and publish nuget
env:
NUGET_KEY: ${{secrets.NUGET_KEY}}
run: make publish-nuget
- name: docker publish
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
make publish