From 02dc8ab4b1405c35f94f14ffb513b95d2f055f02 Mon Sep 17 00:00:00 2001 From: Your Name <50252724+DrMeepso@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:45:56 +1300 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 73b3571..92cd8e7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,6 +9,9 @@ jobs: # Windows Build Job windows-build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./WFServer steps: # Step 1: Checkout the code @@ -23,22 +26,18 @@ jobs: # Step 3: Restore dependencies - name: Restore dependencies - working-directory: ./WFServer run: dotnet restore # Step 4: Publish the project as a single file for Windows 64-bit - name: Publish the application (Windows) - working-directory: ./WFServer run: dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish # Step 5: Zip the Windows publish folder - name: Zip the Windows publish folder - working-directory: ./WFServer run: zip -r ./publish/win64.zip ./publish # Step 6: Upload the Windows build as an artifact to be used in release - name: Upload Windows Build Artifact - working-directory: ./WFServer uses: actions/upload-artifact@v3 with: name: win64 @@ -61,27 +60,22 @@ jobs: # Step 3: Restore dependencies - name: Restore dependencies - working-directory: ./WFServer run: dotnet restore # Step 4: Publish the project as a single file for Linux 64-bit - name: Publish the application (Linux) - working-directory: ./WFServer run: dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish # Step 5: Copy the native library - name: Copy libsteam_api.so to publish folder - working-directory: ./WFServer run: cp ./NativeLibraries/linux64/libsteam_api.so ./publish/ # Step 6: Zip the Linux publish folder - name: Zip the Linux publish folder - working-directory: ./WFServer run: zip -r ./publish/linux64.zip ./publish # Step 7: Upload the Linux build as an artifact to be used in release - name: Upload Linux Build Artifact - working-directory: ./WFServer uses: actions/upload-artifact@v3 with: name: linux64