-
-
Notifications
You must be signed in to change notification settings - Fork 180
51 lines (47 loc) · 1.27 KB
/
dotnetcore.yml
File metadata and controls
51 lines (47 loc) · 1.27 KB
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
on:
push:
branches:
- v6
tags:
- "*.*.*"
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies (Ubuntu)
run: sudo apt install redis-server
if: matrix.os == 'ubuntu-latest'
- name: Install Dependencies (macOS)
run: brew install redis && brew services start redis
if: matrix.os == 'macos-latest'
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- run: dotnet --info
- if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
run: ./build.sh
publish:
needs: build
name: Publish Nuget Packages
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Build with dotnet
run: ./NuGetPack.bat
shell: bash
- name: Publish nuget
run: |
for f in ./packages/*.nupkg
do
dotnet nuget push $f --api-key ${{ secrets.NuGetApiKey}} --source https://api.nuget.org/v3/index.json
done
shell: bash