From 529fd5be03cdc9b3daf52c50b12b720e1cd81c64 Mon Sep 17 00:00:00 2001 From: Eugenio Tavares Date: Wed, 20 Nov 2024 19:27:18 -0300 Subject: [PATCH] fix: main.yml --- .github/workflows/main.yml | 8 ++++---- Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4190335..8004b40 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,16 +25,16 @@ jobs: run: echo "##[set-output name=VERSION;]$(grep -oP '(?<=)[^<]+' Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj)" - name: Restore dependencies - run: dotnet restore + run: dotnet restore Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj --configuration Release --no-restore - name: Publish for Linux - run: dotnet publish --configuration Release --runtime linux-x64 --output ./publish/linux --no-build + run: dotnet publish Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj --configuration Release --runtime linux-x64 --output ./publish/linux --no-build - name: Publish for Windows - run: dotnet publish --configuration Release --runtime win-x64 --output ./publish/windows --no-build + run: dotnet publish Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj --configuration Release --runtime win-x64 --output ./publish/windows --no-build - name: Create Linux release package run: tar -czvf release-package-linux-${{ steps.extract_version.outputs.VERSION }}.tar.gz -C ./publish/linux . diff --git a/Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj b/Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj index 7623558..2cbec4b 100644 --- a/Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj +++ b/Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj @@ -3,6 +3,7 @@ Exe net8.0 + win-x64;linux-x64 enable enable 0.1.0