Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On release push packages to NuGet #92

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}