Update dotnet-desktop.yml

This commit is contained in:
Sora 2023-04-16 08:40:16 +08:00 committed by GitHub
parent ab6b21a6e0
commit ec7b605b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 13 deletions

View File

@ -2,33 +2,29 @@ name: Build ChangeTimestamp
on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v2
# Install the .NET Framework version 4.0
- name: Use .NET Framework version 4.0
uses: microsoft/setup-msbuild@v1.0.2
with:
dotnet-version: '4.0'
# Install NuGet packages
- name: Install NuGet Packages
- name: Restore NuGet packages
run: nuget restore ChangeTimestamp.sln
# Build solution
- name: Build solution
run: msbuild.exe ChangeTimestamp.sln /t:Build /p:Configuration=${{ matrix.configuration }}