Skip to content

ci: 💚 Upgrade git pipeline steps #66

ci: 💚 Upgrade git pipeline steps

ci: 💚 Upgrade git pipeline steps #66

name: Build bnetlauncher
on: [push, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup MSBuild Path
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Restore NuGet Packages
run: nuget restore bnetlauncher.sln
- name: Build and Publish
run: msbuild bnetlauncher.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
- name: Copy files for release
run: |
copy bnetlauncher\Resources\gamesdb.ini gamesdb.ini.example
copy bnetlauncher\bin\Release\ILMerge\bnetlauncher.exe bnetlauncher.exe
# - name: Determine Version
# run: |
# $r = Get-Content .\bnetlauncher\Properties\AssemblyInfo.cs | Select-String -Pattern 'AssemblyVersion\("(?<version>.*)\.\*'
# Write-Host "version=$($r.Matches.Groups.Value)" >> $env:GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: "bnetlauncher"
path: |
bnetlauncher.exe
README.md
changelog.txt
license.txt
gamesdb.ini.example