@@ -47,169 +47,240 @@ jobs:
4747
4848 - name : Publish framework-dependent
4949 run : |
50- dotnet publish CubicBot.Telegram.App -c Release --no-restore
51- dotnet publish CubicBot.Telegram.Tool -c Release --no-restore
50+ dotnet publish src/CubicBot.Telegram.LongPolling -c Release --no-restore
51+ dotnet publish src/CubicBot.Telegram.Webhook -c Release --no-restore
52+ dotnet publish src/CubicBot.Telegram.Tool -c Release --no-restore
5253
5354 - name : Publish self-contained for Linux ARM64
5455 if : matrix.os == 'ubuntu-latest'
5556 run : |
56- dotnet publish CubicBot.Telegram.App -c Release $MSBUILD_PROPS -r linux-arm64 --self-contained
57- dotnet publish CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r linux-arm64 --self-contained
57+ dotnet publish src/CubicBot.Telegram.LongPolling -c Release $MSBUILD_PROPS -r linux-arm64 --self-contained
58+ dotnet publish src/CubicBot.Telegram.Webhook -c Release $MSBUILD_PROPS -r linux-arm64 --self-contained
59+ dotnet publish src/CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r linux-arm64 --self-contained
5860
5961 - name : Publish self-contained for Linux x64
6062 if : matrix.os == 'ubuntu-latest'
6163 run : |
62- dotnet publish CubicBot.Telegram.App -c Release $MSBUILD_PROPS -r linux-x64 --self-contained
63- dotnet publish CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r linux-x64 --self-contained
64+ dotnet publish src/CubicBot.Telegram.LongPolling -c Release $MSBUILD_PROPS -r linux-x64 --self-contained
65+ dotnet publish src/CubicBot.Telegram.Webhook -c Release $MSBUILD_PROPS -r linux-x64 --self-contained
66+ dotnet publish src/CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r linux-x64 --self-contained
6467
6568 - name : Publish self-contained for Windows ARM64
6669 if : matrix.os == 'windows-latest'
6770 run : |
68- dotnet publish CubicBot.Telegram.App -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
69- dotnet publish CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
71+ dotnet publish src/CubicBot.Telegram.LongPolling -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
72+ dotnet publish src/CubicBot.Telegram.Webhook -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
73+ dotnet publish src/CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
7074
7175 - name : Publish self-contained for Windows x64
7276 if : matrix.os == 'windows-latest'
7377 run : |
74- dotnet publish CubicBot.Telegram.App -c Release $MSBUILD_PROPS -r win-x64 --self-contained
75- dotnet publish CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r win-x64 --self-contained
78+ dotnet publish src/CubicBot.Telegram.LongPolling -c Release $MSBUILD_PROPS -r win-x64 --self-contained
79+ dotnet publish src/CubicBot.Telegram.Webhook -c Release $MSBUILD_PROPS -r win-x64 --self-contained
80+ dotnet publish src/CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r win-x64 --self-contained
7681
7782 - name : Publish self-contained for macOS ARM64
7883 if : matrix.os == 'macos-latest'
7984 run : |
80- dotnet publish CubicBot.Telegram.App -c Release $MSBUILD_PROPS -r osx-arm64 --self-contained
81- dotnet publish CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r osx-arm64 --self-contained
85+ dotnet publish src/CubicBot.Telegram.LongPolling -c Release $MSBUILD_PROPS -r osx-arm64 --self-contained
86+ dotnet publish src/CubicBot.Telegram.Webhook -c Release $MSBUILD_PROPS -r osx-arm64 --self-contained
87+ dotnet publish src/CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r osx-arm64 --self-contained
8288
8389 - name : Publish self-contained for macOS x64
8490 if : matrix.os == 'macos-latest'
8591 run : |
86- dotnet publish CubicBot.Telegram.App -c Release $MSBUILD_PROPS -r osx-x64 --self-contained
87- dotnet publish CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r osx-x64 --self-contained
92+ dotnet publish src/CubicBot.Telegram.LongPolling -c Release $MSBUILD_PROPS -r osx-x64 --self-contained
93+ dotnet publish src/CubicBot.Telegram.Webhook -c Release $MSBUILD_PROPS -r osx-x64 --self-contained
94+ dotnet publish src/CubicBot.Telegram.Tool -c Release $MSBUILD_PROPS -r osx-x64 --self-contained
8895
89- # Upload CubicBot.Telegram.App
90- - name : Upload CubicBot.Telegram.App artifacts for Linux ARM64
96+ # Upload CubicBot.Telegram.LongPolling
97+ - name : Upload CubicBot.Telegram.LongPolling artifacts for Linux ARM64
9198 if : matrix.os == 'ubuntu-latest'
9299 uses : actions/upload-artifact@v5
93100 with :
94101 name : cubic-bot-telegram-app-${{ github.sha }}-linux-arm64
95- path : CubicBot.Telegram.App /bin/Release/net10.0/linux-arm64/publish/
102+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/linux-arm64/publish/
96103
97- - name : Upload CubicBot.Telegram.App artifacts for Linux x64
104+ - name : Upload CubicBot.Telegram.LongPolling artifacts for Linux x64
98105 if : matrix.os == 'ubuntu-latest'
99106 uses : actions/upload-artifact@v5
100107 with :
101108 name : cubic-bot-telegram-app-${{ github.sha }}-linux-x64
102- path : CubicBot.Telegram.App /bin/Release/net10.0/linux-x64/publish/
109+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/linux-x64/publish/
103110
104- - name : Upload CubicBot.Telegram.App artifacts for Linux framework-dependent
111+ - name : Upload CubicBot.Telegram.LongPolling artifacts for Linux framework-dependent
105112 if : matrix.os == 'ubuntu-latest'
106113 uses : actions/upload-artifact@v5
107114 with :
108115 name : cubic-bot-telegram-app-${{ github.sha }}-linux
109- path : CubicBot.Telegram.App /bin/Release/net10.0/publish/
116+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/publish/
110117
111- - name : Upload CubicBot.Telegram.App artifacts for Windows ARM64
118+ - name : Upload CubicBot.Telegram.LongPolling artifacts for Windows ARM64
112119 if : matrix.os == 'windows-latest'
113120 uses : actions/upload-artifact@v5
114121 with :
115122 name : cubic-bot-telegram-app-${{ github.sha }}-windows-arm64
116- path : CubicBot.Telegram.App /bin/Release/net10.0/win-arm64/publish/
123+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/win-arm64/publish/
117124
118- - name : Upload CubicBot.Telegram.App artifacts for Windows x64
125+ - name : Upload CubicBot.Telegram.LongPolling artifacts for Windows x64
119126 if : matrix.os == 'windows-latest'
120127 uses : actions/upload-artifact@v5
121128 with :
122129 name : cubic-bot-telegram-app-${{ github.sha }}-windows-x64
123- path : CubicBot.Telegram.App /bin/Release/net10.0/win-x64/publish/
130+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/win-x64/publish/
124131
125- - name : Upload CubicBot.Telegram.App artifacts for Windows framework-dependent
132+ - name : Upload CubicBot.Telegram.LongPolling artifacts for Windows framework-dependent
126133 if : matrix.os == 'windows-latest'
127134 uses : actions/upload-artifact@v5
128135 with :
129136 name : cubic-bot-telegram-app-${{ github.sha }}-windows
130- path : CubicBot.Telegram.App /bin/Release/net10.0/publish/
137+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/publish/
131138
132- - name : Upload CubicBot.Telegram.App artifacts for macOS ARM64
139+ - name : Upload CubicBot.Telegram.LongPolling artifacts for macOS ARM64
133140 if : matrix.os == 'macos-latest'
134141 uses : actions/upload-artifact@v5
135142 with :
136143 name : cubic-bot-telegram-app-${{ github.sha }}-macos-arm64
137- path : CubicBot.Telegram.App /bin/Release/net10.0/osx-arm64/publish/
144+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/osx-arm64/publish/
138145
139- - name : Upload CubicBot.Telegram.App artifacts for macOS x64
146+ - name : Upload CubicBot.Telegram.LongPolling artifacts for macOS x64
140147 if : matrix.os == 'macos-latest'
141148 uses : actions/upload-artifact@v5
142149 with :
143150 name : cubic-bot-telegram-app-${{ github.sha }}-macos-x64
144- path : CubicBot.Telegram.App /bin/Release/net10.0/osx-x64/publish/
151+ path : src/ CubicBot.Telegram.LongPolling /bin/Release/net10.0/osx-x64/publish/
145152
146- - name : Upload CubicBot.Telegram.App artifacts for macOS framework-dependent
153+ - name : Upload CubicBot.Telegram.LongPolling artifacts for macOS framework-dependent
147154 if : matrix.os == 'macos-latest'
148155 uses : actions/upload-artifact@v5
149156 with :
150157 name : cubic-bot-telegram-app-${{ github.sha }}-macos
151- path : CubicBot.Telegram.App/bin/Release/net10.0/publish/
158+ path : src/CubicBot.Telegram.LongPolling/bin/Release/net10.0/publish/
159+
160+ # Upload CubicBot.Telegram.Webhook
161+ - name : Upload CubicBot.Telegram.Webhook artifacts for Linux ARM64
162+ if : matrix.os == 'ubuntu-latest'
163+ uses : actions/upload-artifact@v5
164+ with :
165+ name : cubic-bot-telegram-webhook-${{ github.sha }}-linux-arm64
166+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/linux-arm64/publish/
167+
168+ - name : Upload CubicBot.Telegram.Webhook artifacts for Linux x64
169+ if : matrix.os == 'ubuntu-latest'
170+ uses : actions/upload-artifact@v5
171+ with :
172+ name : cubic-bot-telegram-webhook-${{ github.sha }}-linux-x64
173+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/linux-x64/publish/
174+
175+ - name : Upload CubicBot.Telegram.Webhook artifacts for Linux framework-dependent
176+ if : matrix.os == 'ubuntu-latest'
177+ uses : actions/upload-artifact@v5
178+ with :
179+ name : cubic-bot-telegram-webhook-${{ github.sha }}-linux
180+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/publish/
181+
182+ - name : Upload CubicBot.Telegram.Webhook artifacts for Windows ARM64
183+ if : matrix.os == 'windows-latest'
184+ uses : actions/upload-artifact@v5
185+ with :
186+ name : cubic-bot-telegram-webhook-${{ github.sha }}-windows-arm64
187+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/win-arm64/publish/
188+
189+ - name : Upload CubicBot.Telegram.Webhook artifacts for Windows x64
190+ if : matrix.os == 'windows-latest'
191+ uses : actions/upload-artifact@v5
192+ with :
193+ name : cubic-bot-telegram-webhook-${{ github.sha }}-windows-x64
194+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/win-x64/publish/
195+
196+ - name : Upload CubicBot.Telegram.Webhook artifacts for Windows framework-dependent
197+ if : matrix.os == 'windows-latest'
198+ uses : actions/upload-artifact@v5
199+ with :
200+ name : cubic-bot-telegram-webhook-${{ github.sha }}-windows
201+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/publish/
202+
203+ - name : Upload CubicBot.Telegram.Webhook artifacts for macOS ARM64
204+ if : matrix.os == 'macos-latest'
205+ uses : actions/upload-artifact@v5
206+ with :
207+ name : cubic-bot-telegram-webhook-${{ github.sha }}-macos-arm64
208+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/osx-arm64/publish/
209+
210+ - name : Upload CubicBot.Telegram.Webhook artifacts for macOS x64
211+ if : matrix.os == 'macos-latest'
212+ uses : actions/upload-artifact@v5
213+ with :
214+ name : cubic-bot-telegram-webhook-${{ github.sha }}-macos-x64
215+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/osx-x64/publish/
216+
217+ - name : Upload CubicBot.Telegram.Webhook artifacts for macOS framework-dependent
218+ if : matrix.os == 'macos-latest'
219+ uses : actions/upload-artifact@v5
220+ with :
221+ name : cubic-bot-telegram-webhook-${{ github.sha }}-macos
222+ path : src/CubicBot.Telegram.Webhook/bin/Release/net10.0/publish/
152223
153224 # Upload CubicBot.Telegram.Tool
154225 - name : Upload CubicBot.Telegram.Tool artifacts for Linux ARM64
155226 if : matrix.os == 'ubuntu-latest'
156227 uses : actions/upload-artifact@v5
157228 with :
158229 name : cubic-bot-telegram-tool-${{ github.sha }}-linux-arm64
159- path : CubicBot.Telegram.Tool/bin/Release/net10.0/linux-arm64/publish/
230+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/linux-arm64/publish/
160231
161232 - name : Upload CubicBot.Telegram.Tool artifacts for Linux x64
162233 if : matrix.os == 'ubuntu-latest'
163234 uses : actions/upload-artifact@v5
164235 with :
165236 name : cubic-bot-telegram-tool-${{ github.sha }}-linux-x64
166- path : CubicBot.Telegram.Tool/bin/Release/net10.0/linux-x64/publish/
237+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/linux-x64/publish/
167238
168239 - name : Upload CubicBot.Telegram.Tool artifacts for Linux framework-dependent
169240 if : matrix.os == 'ubuntu-latest'
170241 uses : actions/upload-artifact@v5
171242 with :
172243 name : cubic-bot-telegram-tool-${{ github.sha }}-linux
173- path : CubicBot.Telegram.Tool/bin/Release/net10.0/publish/
244+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/publish/
174245
175246 - name : Upload CubicBot.Telegram.Tool artifacts for Windows ARM64
176247 if : matrix.os == 'windows-latest'
177248 uses : actions/upload-artifact@v5
178249 with :
179250 name : cubic-bot-telegram-tool-${{ github.sha }}-windows-arm64
180- path : CubicBot.Telegram.Tool/bin/Release/net10.0/win-arm64/publish/
251+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/win-arm64/publish/
181252
182253 - name : Upload CubicBot.Telegram.Tool artifacts for Windows x64
183254 if : matrix.os == 'windows-latest'
184255 uses : actions/upload-artifact@v5
185256 with :
186257 name : cubic-bot-telegram-tool-${{ github.sha }}-windows-x64
187- path : CubicBot.Telegram.Tool/bin/Release/net10.0/win-x64/publish/
258+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/win-x64/publish/
188259
189260 - name : Upload CubicBot.Telegram.Tool artifacts for Windows framework-dependent
190261 if : matrix.os == 'windows-latest'
191262 uses : actions/upload-artifact@v5
192263 with :
193264 name : cubic-bot-telegram-tool-${{ github.sha }}-windows
194- path : CubicBot.Telegram.Tool/bin/Release/net10.0/publish/
265+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/publish/
195266
196267 - name : Upload CubicBot.Telegram.Tool artifacts for macOS ARM64
197268 if : matrix.os == 'macos-latest'
198269 uses : actions/upload-artifact@v5
199270 with :
200271 name : cubic-bot-telegram-tool-${{ github.sha }}-macos-arm64
201- path : CubicBot.Telegram.Tool/bin/Release/net10.0/osx-arm64/publish/
272+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/osx-arm64/publish/
202273
203274 - name : Upload CubicBot.Telegram.Tool artifacts for macOS x64
204275 if : matrix.os == 'macos-latest'
205276 uses : actions/upload-artifact@v5
206277 with :
207278 name : cubic-bot-telegram-tool-${{ github.sha }}-macos-x64
208- path : CubicBot.Telegram.Tool/bin/Release/net10.0/osx-x64/publish/
279+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/osx-x64/publish/
209280
210281 - name : Upload CubicBot.Telegram.Tool artifacts for macOS framework-dependent
211282 if : matrix.os == 'macos-latest'
212283 uses : actions/upload-artifact@v5
213284 with :
214285 name : cubic-bot-telegram-tool-${{ github.sha }}-macos
215- path : CubicBot.Telegram.Tool/bin/Release/net10.0/publish/
286+ path : src/ CubicBot.Telegram.Tool/bin/Release/net10.0/publish/
0 commit comments