diff --git a/.github/workflows/build-and-publish-nuget.yml b/.github/workflows/build-and-publish-nuget.yml index f60bd7b..9bc2267 100644 --- a/.github/workflows/build-and-publish-nuget.yml +++ b/.github/workflows/build-and-publish-nuget.yml @@ -32,13 +32,12 @@ jobs: id: buildnumber run: echo "BUILDNUMBER=$((($(date +%s) - $(date -d '2024-01-01' +%s)) / 3600 % 65535))" >> $GITHUB_ENV - # Find the .csproj file - name: Locate Project File id: locate_csproj run: echo "CS_PROJ_PATH=$(find . -name '*.csproj' | head -n 1)" >> $GITHUB_ENV - name: Pack - run: dotnet pack ./**/*.csproj --configuration Release /p:Version=${{ env.VERSIONNUMBER }}.${{ env.BUILDNUMBER }} + run: dotnet pack "${{ env.CS_PROJ_PATH }}" --configuration Release /p:Version=${{ env.VERSIONNUMBER }}.${{ env.BUILDNUMBER }} - name: Push run: dotnet nuget push ./**/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/vippsas/index.json --api-key ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file