-
Notifications
You must be signed in to change notification settings - Fork 14
170 lines (142 loc) · 6.12 KB
/
publish-nuget.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: Publish NuGet
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.300
- name: Install dotnet tool
run: dotnet tool install -g dotnetCampus.TagToVersion
- name: Set tag to version
run: dotnet TagToVersion -t ${{ github.ref }} -f Version.props
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish GameFrameX.Extension
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Extension/GameFrameX.Extension.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Core
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Core/GameFrameX.Core.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Core.Abstractions
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Core.Abstractions/GameFrameX.Core.Abstractions.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Core.Config
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Core.Config/GameFrameX.Core.Config.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Utility
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Utility/GameFrameX.Utility.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Setting
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Setting/GameFrameX.Setting.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.StartUp
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.StartUp/GameFrameX.StartUp.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.ProtoBuf.Net
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.ProtoBuf.Net/GameFrameX.ProtoBuf.Net.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.NetWork
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.NetWork/GameFrameX.NetWork.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.NetWork.HTTP
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.NetWork.HTTP/GameFrameX.NetWork.HTTP.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.NetWork.Message
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.NetWork.Message/GameFrameX.NetWork.Message.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.NetWork.Abstractions
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.NetWork.Abstractions/GameFrameX.NetWork.Abstractions.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Log
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Log/GameFrameX.Log.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Monitor
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Monitor/GameFrameX.Monitor.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Cache.Memory
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Cache.Memory/GameFrameX.Cache.Memory.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.Cache
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: GameFrameX.Cache/GameFrameX.Cache.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.DataBase
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: DataBaseServer/GameFrameX.DataBase/GameFrameX.DataBase.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.DataBase.Mongo
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: DataBaseServer/GameFrameX.DataBase.Mongo/GameFrameX.DataBase.Mongo.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.DataBase.NoSql
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: DataBaseServer/GameFrameX.DataBase.NoSql/GameFrameX.DataBase.NoSql.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish GameFrameX.DataBase.NoSql.Redis
uses: AlianBlank/publish-nuget@v1.0.2
with:
PROJECT_FILE_PATH: DataBaseServer/GameFrameX.DataBase.NoSql.Redis/GameFrameX.DataBase.NoSql.Redis.csproj
VERSION_FILE_PATH: Version.props
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}