зеркало из https://github.com/microsoft/2LCS.git
Merge pull request #96 from FH-Inway/update-pr-actions
Update GitHub Actions and NuGet setup
This commit is contained in:
Коммит
ec2979f995
|
@ -10,17 +10,22 @@ jobs:
|
|||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
uses: microsoft/setup-msbuild@v2
|
||||
|
||||
- name: Setup NuGet
|
||||
uses: nuget/setup-nuget@v1
|
||||
uses: nuget/setup-nuget@v2
|
||||
|
||||
- name: Restore NuGet packages
|
||||
run: nuget restore 2LCS/2LCS.csproj
|
||||
|
||||
- name: Build
|
||||
run: msbuild 2LCS/2LCS.csproj /p:VersionSuffix=pr /p:Configuration=Release /p:Version=0.0.0.${{ github.event.pull_request.number }} /p:InformationalVersion=0.0.0.${{ github.event.pull_request.number }}-pr
|
||||
|
||||
- name: Upload 2LCS.zip
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: 2LCS
|
||||
path: 2LCS/bin/Release
|
||||
|
|
Загрузка…
Ссылка в новой задаче