File tree Expand file tree Collapse file tree 1 file changed +27
-19
lines changed Expand file tree Collapse file tree 1 file changed +27
-19
lines changed Original file line number Diff line number Diff line change 1-
21name : CI
2+
33on :
44 push :
55 branches : [ master ]
88 workflow_dispatch :
99
1010jobs :
11-
1211 build :
1312 runs-on : windows-latest
13+
1414 steps :
15- - name : Setup .NET Core SDK
16- uses : actions/setup-dotnet@v1.7.2
17-
18- - uses : actions/checkout@v2.3.4
19-
15+ - name : Setup .NET 8 SDK
16+ uses : actions/setup-dotnet@v3
17+ with :
18+ dotnet-version : ' 8.x'
19+
20+ - uses : actions/checkout@v3
21+
2022 - name : Restore Packages
21- run : nuget restore
22-
23- - name : setup-msbuild
24- uses : microsoft/setup-msbuild@v1.1.3
25-
26- - name : Build app for release
27- run : msbuild EXILED-DLL-Archiver\EXILED-DLL-Archiver.csproj -t:rebuild -verbosity:diag -property:Configuration=Release
28-
29- - name : Upload artifacts
30- uses : actions/upload-artifact@v2
23+ run : dotnet restore
24+
25+ - name : Build app for release (Windows)
26+ run : dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true
27+
28+ - name : Build app for release (Linux)
29+ run : dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true
30+
31+ - name : Upload Windows artifact
32+ uses : actions/upload-artifact@v3
33+ with :
34+ name : Exiled.Archiver-win-x64
35+ path : Exiled.Archiver/bin/Release/net8.0/win-x64/publish/Exiled.Archiver.exe
36+
37+ - name : Upload Linux artifact
38+ uses : actions/upload-artifact@v3
3139 with :
32- name : EXILED-DLL-Archiver.exe
33- path : EXILED-DLL- Archiver/bin/Release/EXILED-DLL-Archiver.exe
40+ name : Exiled.Archiver-linux-x64
41+ path : Exiled. Archiver/bin/Release/net8.0/linux-x64/publish/Exiled.Archiver
You can’t perform that action at this time.
0 commit comments