Skip to content

Commit

Permalink
fix: main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gnios committed Nov 20, 2024
1 parent 01528ec commit 529fd5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
run: echo "##[set-output name=VERSION;]$(grep -oP '(?<=<Version>)[^<]+' 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 .
Expand Down
1 change: 1 addition & 0 deletions Gnios.AzureDevops.Cli/Gnios.AzureDevops.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.1.0</Version>
Expand Down

0 comments on commit 529fd5b

Please sign in to comment.