-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (26 loc) · 1.43 KB
/
publish.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
name: Publish
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-dotnet@v1
- name: Setup Nuget
uses: NuGet/setup-nuget@v1
- name: Nuget Add source
run: nuget sources Add -Name "GitHub" -Source "https://nuget.pkg.github.com/barimale/index.json" -UserName barimale -Password ${{ secrets.VS2019 }}
- name: Nuget Add apiKey
run: nuget setapikey ${{ secrets.NUGET_ORG_TOKEN }} -Source "https://api.nuget.org/v3/index.json"
- name: Nuget Restore
run: nuget restore .\Keycloak.NET.Client.FluentAPI\Keycloak.NET.Client.FluentAPI.sln
- name: Build Solution
run: dotnet build .\Keycloak.NET.Client.FluentAPI\Keycloak.NET.Client.FluentAPI.sln --configuration Release
- name: Nuget Pack
run: nuget pack .\Keycloak.NET.Client.FluentAPI\pack.nuspec -Properties Configuration=Release -OutputDirectory .\nugetPackages -Symbols -SymbolPackageFormat snupkg
- name: Nuget Pack2
run: nuget pack .\Keycloak.NET.Client.FluentAPI\secondPack.nuspec -Properties Configuration=Release -OutputDirectory .\nugetPackages -Symbols -SymbolPackageFormat snupkg
- name: Nuget Push to github
run: nuget push .\nugetPackages\*.nupkg -Source GitHub -SkipDuplicate
- name: Nuget Push to nuget.org
run: nuget push .\nugetPackages\*.nupkg -Source "https://api.nuget.org/v3/index.json" -SkipDuplicate -NoSymbols