-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74cb69d
commit 2832682
Showing
1 changed file
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
@@ -8,26 +8,34 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Setup .NET Core SDK | ||
uses: actions/[email protected] | ||
|
||
- uses: actions/[email protected] | ||
|
||
- name: Setup .NET 8 SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.x' | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Restore Packages | ||
run: nuget restore | ||
|
||
- name: setup-msbuild | ||
uses: microsoft/[email protected] | ||
|
||
- name: Build app for release | ||
run: msbuild EXILED-DLL-Archiver\EXILED-DLL-Archiver.csproj -t:rebuild -verbosity:diag -property:Configuration=Release | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
run: dotnet restore | ||
|
||
- name: Build app for release (Windows) | ||
run: dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true | ||
|
||
- name: Build app for release (Linux) | ||
run: dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true | ||
|
||
- name: Upload Windows artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Exiled.Archiver-win-x64 | ||
path: Exiled.Archiver/bin/Release/net8.0/win-x64/publish/Exiled.Archiver.exe | ||
|
||
- name: Upload Linux artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: EXILED-DLL-Archiver.exe | ||
path: EXILED-DLL-Archiver/bin/Release/EXILED-DLL-Archiver.exe | ||
name: Exiled.Archiver-linux-x64 | ||
path: Exiled.Archiver/bin/Release/net8.0/linux-x64/publish/Exiled.Archiver |