Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IeuanWalker authored Jul 19, 2020
1 parent f075cfd commit ab62f36
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ jobs:
- name: Build
run: dotnet build Breadcrumb/Breadcrumb.csproj --configuration Release --no-restore
- name: Create NuGet package
run: dotnet pack Breadcrumb/Breadcrumb.csproj -c Release --no-build /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/IeuanWalker/Xamarin.Forms.Breadcrumb/releases/tag/${{ github.event.release.tag_name }}"
run: dotnet pack Breadcrumb/Breadcrumb.csproj -c Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/IeuanWalker/Xamarin.Forms.Breadcrumb/releases/tag/${{ github.event.release.tag_name }}"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: NuGet package
path: "**/*.nupkg"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: NuGet package
path: "**/*.snupkg"
- name: Publish NuGet package
run: dotnet nuget push **/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
- name: Publish Symbols package
run: dotnet nuget push **/*.snupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 comments on commit ab62f36

Please sign in to comment.