diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bcc5980..1205aec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,7 @@ on: env: BRANCH_NAME: ${{ github.event.release.target_commitish }} SOLUTION_NAME: ${{ vars.SOLUTION_NAME }} + PROJECT_NAME: ${{ vars.PROJECT_NAME }} DOTNET_VERSION: '9.0.x' NUGET_SOURCE: 'https://api.nuget.org/v3/index.json' BUILD_CONFIGURATION: '' @@ -80,4 +81,4 @@ jobs: run: dotnet test --no-build --verbosity normal --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.SOLUTION_NAME }} - name: Pack and Push - run: dotnet pack --no-build --configuration ${{ env.BUILD_CONFIGURATION }} -p:PackageOutputPath=../../output --version-suffix "${{ env.VERSION_SUFFIX }}" -p:PackageSource='${{ env.NUGET_SOURCE }}' -p:PushAfterPack=true -p:PackageApiKey='${{ secrets.NUGET_API_KEY }}' + run: dotnet pack --no-build --configuration ${{ env.BUILD_CONFIGURATION }} -p:PackageId=${{ env.PROJECT_NAME }} -p:PackageOutputPath=../../output --version-suffix "${{ env.VERSION_SUFFIX }}" -p:PackageSource='${{ env.NUGET_SOURCE }}' -p:PushAfterPack=true -p:PackageApiKey='${{ secrets.NUGET_API_KEY }}'