-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (31 loc) · 1.28 KB
/
cd.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
name: Esquio Contrib Continous Deployment
on:
push:
tags:
- release-* # Push events to release-*
jobs:
build:
env:
BUILD_CONFIG: Release
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
version: 3.1.100
- name: dotnet build
run: dotnet build Esquio.Contrib.sln -c $BUILD_CONFIG
- name: dotnet test [FunctionalTests]
run: dotnet test ./tests/FunctionalTests/FunctionalTests.csproj -c $BUILD_CONFIG --no-build
- name: dotnet pack [Esquio.Toggles.GeoLocation]
run: dotnet pack ./src/Esquio.Toggles.GeoLocation/Esquio.Toggles.GeoLocation.csproj -c $BUILD_CONFIG -o ./artifacts --no-build --include-source --include-symbols
- name: dotnet pack [Esquio.Toggles.Http]
run: dotnet pack ./src/Esquio.Toggles.Http/Esquio.Toggles.Http.csproj -c $BUILD_CONFIG -o ./artifacts --no-build --include-source --include-symbols
- name: setup nuget
uses: NuGet/[email protected]
with:
nuget-version: latest
- name: push packages
run: dotnet nuget push ./artifacts/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate