From b1dac95f23c6e686bfefa57f6719335c9d5819e7 Mon Sep 17 00:00:00 2001 From: Compunet <117437050+dme-compunet@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:34:12 +0000 Subject: [PATCH] Update Publish action --- .github/workflows/publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7e5d31c..4a1e8e6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,16 +29,16 @@ jobs: - name: Build run: | - dotnet build -c Release Source/YoloV8/YoloV8.csproj -p:Version=${{ env.VERSION }} - dotnet build -c GpuRelease Source/YoloV8/YoloV8.csproj -p:Version=${{ env.VERSION }} + dotnet build -c Release Source/YoloV8/YoloV8.csproj -p:Version="$VERSION" + dotnet build -c GpuRelease Source/YoloV8/YoloV8.csproj -p:Version="$VERSION" - name: Test run: dotnet test Source/YoloV8.Tests/YoloV8.Tests.csproj - name: Pack run: | - dotnet pack -c Release -o . Source/YoloV8/YoloV8.csproj -p:Version=${{ env.VERSION }} - dotnet pack -c GpuRelease -o . Source/YoloV8/YoloV8.csproj -p:Version=${{ env.VERSION }} + dotnet pack -c Release -o . Source/YoloV8/YoloV8.csproj -p:Version="$VERSION" + dotnet pack -c GpuRelease -o . Source/YoloV8/YoloV8.csproj -p:Version="$VERSION" - name: Publish run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate @@ -47,8 +47,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: > - gh release create ${{ env.VERSION }} + gh release create "$VERSION" --repo ${{ github.event.repository.full_name }} - --title ${{ env.VERSION }} + --title "$VERSION" --generate-notes --verify-tag