Update nightly-build.yaml

This commit is contained in:
Sardelka9515 2022-06-07 08:23:16 +08:00 committed by GitHub
parent 51eaf4f56d
commit 9407d80858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,29 +20,19 @@ jobs:
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore NuGet Packages
run: nuget restore
- name: Restore dependencies
run: dotnet restore
- name: Build client
run: dotnet build RageCoop.Client/RageCoop.Client.csproj --no-restore --configuration Release
- name: Build server win-x64
run: dotnet publish RageCoop.Server/RageCoop.Server.csproj --self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=true -r win-x64
- uses: papeloto/action-zip@v1
with:
files: RageCoop.Server/bin/Release/net6.0/publish/win-x64
dest: RageCoop.Server-win-x64.zip
- uses: papeloto/action-zip@v1
with:
files: RageCoop.Client/bin/Release
dest: RageCoop.Client.zip
run: dotnet publish RageCoop.Server/RageCoop.Server.csproj --self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=true -r win-x64 -o RageCoop.Server/bin/Release/net6.0/publish/win-x64
- uses: actions/upload-artifact@v3
with:
name: RageCoop.Client
path: RageCoop.Client.zip
path: RageCoop.Client/bin/Release
- uses: actions/upload-artifact@v3
with:
name: RageCoop.Server-win-x64
path: RageCoop.Server-win-x64.zip
path: RageCoop.Server/bin/Release/net6.0/publish/win-x64
- uses: actions/checkout@v2