-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (32 loc) · 1.63 KB
/
netcore.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
name: .NET Core CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.x.x
- name: Build with dotnet
run: dotnet build LiqPaySDK/LiqPay.SDK.sln --configuration Release -p:Version=$(date +%Y.%m.%d%H.%M%S)
shell: bash
- name: Run tests
run: dotnet test LiqPaySDK/LiqPay.SDK.Tests/LiqPay.SDK.Tests.csproj
- name: Install NuGet client
uses: nuget/setup-nuget@v1
- name: Add private GitHub registry
run: nuget source Add -Name "github" -Source https://nuget.pkg.github.com/jtone123/index.json -UserName jtone123 -Password ${{secrets.GITHUB_TOKEN}}
- name: Publish Nuget to GitHub registry
run: dotnet nuget push LiqPaySDK/LiqPay.SDK/bin/Release/*.nupkg --source "github" --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
shell: bash
- name: Publish SourceLink SNuget to GitHub registry
run: dotnet nuget push LiqPaySDK/LiqPay.SDK/bin/Release/*.snupkg --source "github" --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
shell: bash
- name: Publish Nuget to Nuget.org
run: dotnet nuget push LiqPaySDK/LiqPay.SDK/bin/Release/*.nupkg --api-key ${{secrets.NUGETSECRET}} --source https://api.nuget.org/v3/index.json --skip-duplicate
shell: bash
- name: Publish SourceLink SNuget to Nuget.org
run: dotnet nuget push LiqPaySDK/LiqPay.SDK/bin/Release/*.snupkg --api-key ${{secrets.NUGETSECRET}} --source https://api.nuget.org/v3/index.json --skip-duplicate
shell: bash