-
Notifications
You must be signed in to change notification settings - Fork 24
44 lines (34 loc) · 1.2 KB
/
bnetlauncher-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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