From 72b93bab956879305387e86077846a9dce54a3fb Mon Sep 17 00:00:00 2001 From: Juicy Date: Thu, 19 Oct 2023 19:07:11 -0400 Subject: [PATCH] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index bfe9eb9b..487ad180 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -47,20 +47,29 @@ on: env: PROJECT_PATH: VTOL_2.0.0/VTOL.csproj - jobs: - deploy: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 + deploy: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 + - uses: actions/setup-dotnet@v1 with: dotnet-version: 6.0.x + + - run: mkdir -p /actions - run: dotnet restore ${{ env.PROJECT_PATH }} - - run: dotnet build ${{ env.PROJECT_PATH }} -c Release --no-restore + # - run: dotnet build ${{ env.PROJECT_PATH }} -c Release --no-restore + + - run: dotnet publish ${{ env.PROJECT_PATH }} -r win-x64 /p:PublishSingleFile=True --self-contained true --output "/actions" + + - uses: actions/checkout@v3 - - run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --self-contained -r win-x64 -p:PublishSingleFile=true --no-build + - run: mkdir -p /actions + - uses: actions/upload-artifact@v3 + with: + name: VTOL_RELEASE + path: /actions/VTOL.exe