File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Build servers"
2+ description : " build servers"
3+ inputs :
4+ version :
5+ description : " Version number"
6+ required : true
7+ runs :
8+ using : " composite"
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v4
12+ - uses : actions/setup-node@v4
13+ with :
14+ node-version : 24
15+
16+ - name : Npm install
17+ working-directory : .
18+ run : npm ci
19+ shell : bash
20+
21+ - name : make csharp-server folder
22+ working-directory : ./server
23+ shell : bash
24+ run : mkdir csharp-server
25+
26+ - name : Build servers
27+ working-directory : ./server
28+ shell : bash
29+ run : |
30+ make build VERSION="${{ inputs.version }}"
31+
32+ - name : Upload csharp-server artifact
33+ uses : actions/upload-artifact@v4
34+ with :
35+ path : " server/csharp-server "
36+ name : server-csharp-${{ inputs.version }}
Original file line number Diff line number Diff line change 5757 with :
5858 version : " ${{ inputs.version }}"
5959
60+ artefact-servers :
61+ name : " Build servers"
62+ runs-on : ubuntu-latest
63+ timeout-minutes : 3
64+ steps :
65+ - name : " Checkout code"
66+ uses : actions/checkout@v4
67+ - name : " Build sdks"
68+ uses : ./.github/actions/build-server
69+ with :
70+ version : " ${{ inputs.version }}"
71+
6072 # artefact-1:
6173 # name: "Artefact 1"
6274 # runs-on: ubuntu-latest
Original file line number Diff line number Diff line change @@ -182,6 +182,24 @@ jobs:
182182 asset_name : api-oas-specification-${{ inputs.version }}.zip
183183 asset_content_type : " application/gzip"
184184
185+
186+ - name : " zip csharp server release asset"
187+ # Git hub pages needs a single tar called artifact inside the zip.
188+ working-directory : ./artifacts/server-csharp-${{ inputs.version }}
189+ run : zip -r ../server-csharp-${{ inputs.version }}.zip .
190+ shell : bash
191+
192+ - name : " Upload csharp server release asset"
193+ uses : actions/upload-release-asset@v1
194+ env :
195+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
196+ with :
197+ upload_url : " ${{ steps.create_release.outputs.upload_url }}"
198+ asset_path : ./artifacts/server-csharp-${{ inputs.version }}.zip
199+ asset_name : server-csharp-${{ inputs.version }}.zip
200+ asset_content_type : " application/gzip"
201+
202+
185203# ## PUBLISH NUGET
186204 publishnuget :
187205 name : " Publish nuget packages to nuget.pkg.github.com"
You can’t perform that action at this time.
0 commit comments