Skip to content

Commit

Permalink
ci(nuget-release): fix cosmos event sourcing pre-release (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
mumby0168 authored Nov 27, 2023
1 parent 0f8bd8a commit d209f1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,15 @@ jobs:
dotnet build ./src/${{ matrix.project }}/${{ matrix.project }}.csproj --configuration Release --no-restore
- name: Pack ${{ matrix.project }}
if: ${{ matrix.project != 'Microsoft.Azure.CosmosEventSourcing' }}
run: |
dotnet pack ./src/${{ matrix.project }}/${{ matrix.project }}.csproj --output packages
- name: Pack ${{ matrix.project }}
if: ${{ matrix.project == 'Microsoft.Azure.CosmosEventSourcing' }}
run: |
dotnet pack ./src/${{ matrix.project }}/${{ matrix.project }}.csproj -p:PackageVersion='${{ steps.regex-match.outputs.match }}-pre1 --output packages
- name: Publish ${{ matrix.project }} package
run: |
nuget push **\*.nupkg -NoSymbols -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
Expand Down

0 comments on commit d209f1d

Please sign in to comment.