Skip to content

Commit

Permalink
Merge pull request #92 from mauroservienti/mauroservienti-patch-1
Browse files Browse the repository at this point in the history
On release push packages to NuGet
  • Loading branch information
mauroservienti authored Sep 25, 2024
2 parents bc2e68f + 44bad8e commit 53ea226
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
- release-*
pull_request:
workflow_dispatch:
release:
types: [created]
env:
DOTNET_NOLOGO: true
jobs:
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 53ea226

Please sign in to comment.