RAGECOOP-V/.github/workflows/nightly-build.yaml

39 lines
855 B
YAML
Raw Normal View History

2022-06-06 17:53:03 +08:00
name: Nightly-build
2022-06-06 17:49:54 +08:00
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
2022-06-06 18:32:02 +08:00
runs-on: windows-latest
2022-06-06 17:49:54 +08:00
strategy:
matrix:
2022-06-06 17:53:03 +08:00
dotnet-version: ['6.0.x']
2022-06-06 17:49:54 +08:00
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
2022-06-06 18:29:50 +08:00
- name: Restore NuGet Packages
run: nuget restore
2022-06-06 17:49:54 +08:00
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
2022-06-06 20:07:57 +08:00
- uses: papeloto/action-zip@v1
with:
files: RageCoop.Client/bin/Release
dest: RageCoop.Client.zip
- uses: actions/upload-artifact@v3
with:
name: RageCoop.Client.zip
path: RageCoop.Client.zip
- uses: actions/checkout@v2