Skip to content

Commit

Permalink
Merge pull request #26 from vippsas/UF-2015-Fix-pack
Browse files Browse the repository at this point in the history
UF-2015 fix pack command
  • Loading branch information
henrikvindshoj authored Oct 29, 2024
2 parents 388e2e6 + 26ab052 commit df33e65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-and-publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit df33e65

Please sign in to comment.