-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from mauroservienti/mauroservienti-patch-1
On release push packages to NuGet
- Loading branch information
Showing
1 changed file
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ on: | |
- release-* | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
env: | ||
DOTNET_NOLOGO: true | ||
jobs: | ||
|
@@ -43,9 +45,9 @@ jobs: | |
name: nuget-packages | ||
path: nugets/ | ||
retention-days: 2 | ||
release: | ||
release-to-feedz: | ||
needs: build | ||
name: Release to MyGet | ||
name: Release to Feedz.io | ||
if: startsWith(github.ref, 'refs/tags') | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
|
@@ -62,3 +64,22 @@ jobs: | |
run: dotnet nuget push ./nugets/*.nupkg --source https://f.feedz.io/mauroservienti/pre-releases/nuget --api-key ${{ secrets.FEEDZ_API_KEY }} | ||
- name: Push symbols to Feedz.io | ||
run: dotnet nuget push ./nugets/*.snupkg --source https://f.feedz.io/mauroservienti/pre-releases/symbols --api-key ${{ secrets.FEEDZ_API_KEY }} | ||
release-to-nuget: | ||
needs: build | ||
name: Release to Nuget.org | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Setup .NET | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Download artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: nuget-packages | ||
path: nugets/ | ||
- name: Push package to NuGet.org | ||
run: dotnet nuget push ./nugets/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} | ||
- name: Push symbols to NuGet.org | ||
run: dotnet nuget push ./nugets/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} |