Skip to content

Update Gw2Sharp

Update Gw2Sharp #837

Workflow file for this run

name: PR
on: [pull_request]
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v3.3.0
with:
submodules: 'true'
fetch-depth: 0
- uses: microsoft/setup-msbuild@v1.1
- name: Ensure dotnet 3.1 is available
shell: powershell
run: |
choco install dotnetcore-3.1-runtime
# GitVersion action doesn't support /ensureassemblyinfo, see https://github.com/GitTools/actions/issues/220
# So we need to create a new file to let GitVersion populate it
- name: Create assembly info file for GitVersion
shell: powershell
run: |
set-Content -Path 'Blish HUD/Properties/AssemblyVersionInfo.cs' -Value 'using System.Reflection;'
- uses: gittools/actions/gitversion/setup@v0.9.15
with:
versionSpec: '5.x'
- uses: gittools/actions/gitversion/execute@v0.9.15
id: gitversion
with:
updateAssemblyInfo: true
updateAssemblyInfoFilename: Blish HUD/Properties/AssemblyVersionInfo.cs
- name: Run msbuild restore
run: msbuild -t:restore
- name: Run msbuild
run: msbuild -p:Configuration=Release -p:VERSIONED_BUILD=${{ steps.gitversion.outputs.semVer }}
- name: Delete documentation file before artifact
shell: powershell
run: |
remove-item "Blish HUD/bin/x64/Release/net472/Blish HUD.xml"
- name: Upload build artifact
uses: actions/upload-artifact@v3.1.2
with:
name: Blish HUD.${{ steps.gitversion.outputs.semVer }}
path: Blish HUD/bin/x64/Release/net472