File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,19 +30,10 @@ jobs:
3030 - name : Setup .NET 8
3131 uses : actions/setup-dotnet@v4
3232 with :
33- dotnet-version : ' 8.0.x'
33+ dotnet-version : " 8.0.x"
3434
3535 - name : Restore
3636 run : msbuild Colors.Dev.sln /t:Restore /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
3737
3838 - name : Build
3939 run : msbuild Colors.Dev.sln /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
40-
41- - name : Upload build artifacts
42- uses : actions/upload-artifact@v4
43- with :
44- name : Colors.Dev-${{ matrix.configuration }}-${{ matrix.platform }}
45- path : |
46- **/bin/${{ matrix.platform }}/${{ matrix.configuration }}/**
47- **/${{ matrix.platform }}/${{ matrix.configuration }}/**
48- if-no-files-found : warn
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ runs-on : windows-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup MSBuild
20+ uses : microsoft/setup-msbuild@v2
21+
22+ - name : Setup .NET 8
23+ uses : actions/setup-dotnet@v4
24+ with :
25+ dotnet-version : " 8.0.x"
26+
27+ - name : Restore
28+ run : msbuild Colors.Dev.sln /t:Restore /p:Configuration=Release /p:Platform=x64
29+
30+ - name : Build
31+ run : msbuild Colors.Dev.sln /m /p:Configuration=Release /p:Platform=x64
32+
33+ - name : Package
34+ shell : pwsh
35+ run : |
36+ New-Item -ItemType Directory -Force -Path release | Out-Null
37+ Copy-Item "x64/Release/Colors.Dev.dll" -Destination release
38+ Copy-Item "x64/Release/Colors.Dev.lib" -Destination release
39+ Copy-Item "*.h" -Destination release -ErrorAction SilentlyContinue
40+
41+ - name : Create GitHub Release
42+ uses : softprops/action-gh-release@v2
43+ with :
44+ files : release/*
You can’t perform that action at this time.
0 commit comments