Skip to content

Commit

Permalink
13
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Popov <[email protected]>
  • Loading branch information
aensidhe committed Nov 21, 2023
1 parent c9ad25c commit fc09207
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ jobs:
- name: Pack nuget
if: success()
run: |
$NugetVersion = git describe --tags --abbrev=1 | sed 's/-/./'
dotnet pack -c Release --no-build -v minimal -o ${{ env.NuGetDirectory }} -p:PackageVersion=$NugetVersion
set +x
$NUGET_VERSION=$(git describe --tags --abbrev=1 | sed 's/-/./')
dotnet pack -c Release --no-build -v minimal -o ${{ env.NuGetDirectory }} -p:PackageVersion=$NUGET_VERSION
- name: Publish NuGet package
if: success() && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
run: dotnet nuget push "${{ env.NuGetDirectory }}\*.nupkg" --api-key "${{ secrets.NUGET_PUSH }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
Expand Down

0 comments on commit fc09207

Please sign in to comment.