forked from bitfoundation/bitplatform
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (67 loc) · 4.06 KB
/
Prerelease.nuget.org.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Prerelease nuget packages
on:
workflow_dispatch:
push:
tags:
- 'v-*'
jobs:
build-publish:
name: build & publish
runs-on: windows-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: dotnet restore BlazorUI
run: dotnet restore src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj
- name: dotnet msbuild BlazorUI (1)
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet msbuild BlazorUI (2)
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet pack BlazorUI
run: dotnet pack src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj --output . --configuration Release
- name: dotnet restore BlazorUI.Charts
run: dotnet restore src/BlazorUI/Bit.BlazorUI.Charts/Bit.BlazorUI.Charts.csproj
- name: dotnet msbuild BlazorUI.Charts (1)
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Charts/Bit.BlazorUI.Charts.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet msbuild BlazorUI.Charts (2)
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Charts/Bit.BlazorUI.Charts.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet pack BlazorUI.Charts
run: dotnet pack src/BlazorUI/Bit.BlazorUI.Charts/Bit.BlazorUI.Charts.csproj --output . --configuration Release
- name: dotnet restore Bswup
run: dotnet restore src/Bswup/Bit.Bswup/Bit.Bswup.csproj
- name: dotnet msbuild Bswup (1)
run: dotnet msbuild src/Bswup/Bit.Bswup/Bit.Bswup.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet msbuild Bswup (2)
run: dotnet msbuild src/Bswup/Bit.Bswup/Bit.Bswup.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet pack Bswup
run: dotnet pack src/Bswup/Bit.Bswup/Bit.Bswup.csproj --output . --configuration Release
- name: dotnet restore Butil
run: dotnet restore src/Butil/Bit.Butil/Bit.Butil.csproj
- name: dotnet msbuild Butil (1)
run: dotnet msbuild src/Butil/Bit.Butil/Bit.Butil.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet msbuild Butil (2)
run: dotnet msbuild src/Butil/Bit.Butil/Bit.Butil.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet pack Butil
run: dotnet pack src/Butil/Bit.Butil/Bit.Butil.csproj --output . --configuration Release
- name: dotnet restore CodeAnalyzers
run: dotnet restore src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj
- name: dotnet msbuild CodeAnalyzers
run: dotnet msbuild src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet pack CodeAnalyzer
run: dotnet pack src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj --output . --configuration Release
- name: dotnet restore SourceGenerators
run: dotnet restore src/SourceGenerators/Bit.SourceGenerators/Bit.SourceGenerators.csproj
- name: dotnet msbuild SourceGenerators
run: dotnet msbuild src/SourceGenerators/Bit.SourceGenerators/Bit.SourceGenerators.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false
- name: dotnet pack SourceGenerators
run: dotnet pack src/SourceGenerators/Bit.SourceGenerators/Bit.SourceGenerators.csproj --output . --configuration Release
- name: dotnet pack TodoTemplate
run: dotnet pack src/Templates/TodoTemplate/Bit.TodoTemplate.ProjectTemplate.csproj --output . --configuration Release
- name: dotnet pack AdminPanel
run: dotnet pack src/Templates/AdminPanel/Bit.AdminPanel.ProjectTemplate.csproj --output . --configuration Release
- name: dotnet nuget push
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_ORG_API_KEY}}