Skip to content

Commit 7b4aba8

Browse files
committed
[修改]1. 修改工作流水线
1 parent 7ed48e3 commit 7b4aba8

5 files changed

Lines changed: 127 additions & 140 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/myget.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/myget_release.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
name: Publish NuGet
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup .NET Core
15+
uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: 8.0.x
18+
19+
- name: Install dotnet tool
20+
run: dotnet tool install -g dotnetCampus.TagToVersion
21+
22+
- name: Set tag to version
23+
run: dotnet TagToVersion -t ${{ github.ref }} -f Directory.Build.props
24+
25+
- name: Install dependencies
26+
run: dotnet restore
27+
28+
- name: Build
29+
run: dotnet build --configuration Release --no-restore
30+
31+
- name: Publish GameFrameX.SuperSocket.Client
32+
uses: alianblank/publish-nuget@v1.0.2
33+
with:
34+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Client/GameFrameX.SuperSocket.Client.csproj
35+
VERSION_FILE_PATH: Directory.Build.props
36+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
37+
38+
- name: Publish GameFrameX.SuperSocket.Client.Proxy
39+
uses: alianblank/publish-nuget@v1.0.2
40+
with:
41+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Client.Proxy/GameFrameX.SuperSocket.Client.Proxy.csproj
42+
VERSION_FILE_PATH: Directory.Build.props
43+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
44+
45+
- name: Publish GameFrameX.SuperSocket.ClientEngine
46+
uses: alianblank/publish-nuget@v1.0.2
47+
with:
48+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.ClientEngine/GameFrameX.SuperSocket.ClientEngine.csproj
49+
VERSION_FILE_PATH: Directory.Build.props
50+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
51+
52+
- name: Publish GameFrameX.SuperSocket.Command
53+
uses: alianblank/publish-nuget@v1.0.2
54+
with:
55+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Command/GameFrameX.SuperSocket.Command.csproj
56+
VERSION_FILE_PATH: Directory.Build.props
57+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
58+
59+
- name: Publish GameFrameX.SuperSocket.Connection
60+
uses: alianblank/publish-nuget@v1.0.2
61+
with:
62+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Connection/GameFrameX.SuperSocket.Connection.csproj
63+
VERSION_FILE_PATH: Directory.Build.props
64+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
65+
66+
- name: Publish GameFrameX.SuperSocket.Http
67+
uses: alianblank/publish-nuget@v1.0.2
68+
with:
69+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Http/GameFrameX.SuperSocket.Http.csproj
70+
VERSION_FILE_PATH: Directory.Build.props
71+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
72+
73+
- name: Publish GameFrameX.SuperSocket.Kestrel
74+
uses: alianblank/publish-nuget@v1.0.2
75+
with:
76+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Kestrel/GameFrameX.SuperSocket.Kestrel.csproj
77+
VERSION_FILE_PATH: Directory.Build.props
78+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
79+
80+
- name: Publish GameFrameX.SuperSocket.Primitives
81+
uses: alianblank/publish-nuget@v1.0.2
82+
with:
83+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Primitives/GameFrameX.SuperSocket.Primitives.csproj
84+
VERSION_FILE_PATH: Directory.Build.props
85+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
86+
87+
- name: Publish GameFrameX.SuperSocket.ProtoBase
88+
uses: alianblank/publish-nuget@v1.0.2
89+
with:
90+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.ProtoBase/GameFrameX.SuperSocket.ProtoBase.csproj
91+
VERSION_FILE_PATH: Directory.Build.props
92+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
93+
94+
- name: Publish GameFrameX.SuperSocket.Server
95+
uses: alianblank/publish-nuget@v1.0.2
96+
with:
97+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Server/GameFrameX.SuperSocket.Server.csproj
98+
VERSION_FILE_PATH: Directory.Build.props
99+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
100+
101+
- name: Publish GameFrameX.SuperSocket.Server.Abstractions
102+
uses: alianblank/publish-nuget@v1.0.2
103+
with:
104+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Server.Abstractions/GameFrameX.SuperSocket.Server.Abstractions.csproj
105+
VERSION_FILE_PATH: Directory.Build.props
106+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
107+
108+
- name: Publish GameFrameX.SuperSocket.Udp
109+
uses: alianblank/publish-nuget@v1.0.2
110+
with:
111+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.Udp/GameFrameX.SuperSocket.Udp.csproj
112+
VERSION_FILE_PATH: Directory.Build.props
113+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
114+
115+
- name: Publish GameFrameX.SuperSocket.WebSocket
116+
uses: alianblank/publish-nuget@v1.0.2
117+
with:
118+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.WebSocket/GameFrameX.SuperSocket.WebSocket.csproj
119+
VERSION_FILE_PATH: Directory.Build.props
120+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
121+
122+
- name: Publish GameFrameX.SuperSocket.WebSocket.Server
123+
uses: alianblank/publish-nuget@v1.0.2
124+
with:
125+
PROJECT_FILE_PATH: src/GameFrameX.SuperSocket.WebSocket.Server/GameFrameX.SuperSocket.WebSocket.Server.csproj
126+
VERSION_FILE_PATH: Directory.Build.props
127+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)