From b10799aa664a147ab5a40c88d202462c9ba17adf Mon Sep 17 00:00:00 2001 From: JIBSIL <40243545+JIBSIL@users.noreply.github.com> Date: Sat, 16 Dec 2023 13:20:08 -0500 Subject: [PATCH] add artifact release to action --- .github/workflows/dotnet.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3430ba3..e6705bc 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,5 +22,23 @@ jobs: dotnet-version: 6.0.x - name: Restore dependencies run: dotnet restore - - name: Build - run: dotnet build --configuration Release + - name: Build for linux + run: dotnet publish -r win-x64 -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true --configuration Release + - name: Build for windows + run: dotnet publish -r linux-x64 -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true --configuration Release + - name: Build for macos + run: dotnet publish -r osx-x64 -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true --configuration Release + - name: Upload a Build Artifact + # upload artifacts + - uses: actions/upload-artifact@v4 + with: + name: macOS release + path: TABGServer/bin/Debug/net7.0/osx-x64/publish/TABG + - uses: actions/upload-artifact@v4 + with: + name: linux release + path: TABGServer/bin/Debug/net7.0/linux-x64/publish/TABG + - uses: actions/upload-artifact@v4 + with: + name: windows release + path: TABGServer/bin/Debug/net7.0/win-x64/publish/TABG.exe