Skip to content

Commit

Permalink
Fix upload task (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
colindembovsky authored Mar 26, 2022
1 parent 264d3b9 commit bcf0af8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish nuget matrix
name: publish nuget
on:
push:
tags:
Expand Down Expand Up @@ -58,13 +58,17 @@ jobs:
- name: Build ${{ matrix.project }}
run: |
dotnet build ./src/${{ matrix.project }}/${{ matrix.project }}.csproj --configuration Release --no-restore
- name: Pack ${{ matrix.project }}
run: |
dotnet pack ./src/${{ matrix.project }}/${{ matrix.project }}.csproj --output packages
- name: Upload ${{ matrix.project }}
uses: ./.github/workflows/upload-package
uses: actions/upload-artifact@v2
with:
version: ${{ steps.regex-match.outputs.match }}
project-name: ${{ matrix.project }}

name: ${{ matrix.project }}.${{ steps.regex-match.outputs.match }}.nupkg
path: packages/*.nupkg
- name: Publish ${{ matrix.project }} package
run: |
nuget push **\${{ matrix.project }}.*.nupkg -Source 'https://api.nuget.org/v3/index.json' -NoSymbols -NonInteractive -ApiKey ${{secrets.NUGET_API_KEY}}

0 comments on commit bcf0af8

Please sign in to comment.