Skip to content

Commit

Permalink
Merge pull request #96 from FH-Inway/update-pr-actions
Browse files Browse the repository at this point in the history
Update GitHub Actions and NuGet setup
  • Loading branch information
FH-Inway authored Apr 16, 2024
2 parents 4b89a4b + 4a3fe56 commit ec2979f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ec2979f

Please sign in to comment.