Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
chore: generic publishing
Browse files Browse the repository at this point in the history
makes it easy to fork and publish to your own nuget source without modifications to the workflow files
  • Loading branch information
the-avid-engineer committed May 24, 2022
1 parent 44eb07a commit ce24593
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
types:
- published

name: Publish to Nuget.org
name: Publish to Stable

jobs:
extract:
Expand All @@ -17,9 +17,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

nuget:
name: Publish to Nuget.org
stable:
name: Publish to Stable
runs-on: ubuntu-latest
environment: stable
needs: extract
steps:
- name: Checkout Repository
Expand All @@ -41,5 +42,5 @@ jobs:
run: dotnet test EntityDb.sln --no-restore -c Debug
- name: Pack Projects into Nuget Packages
run: dotnet pack EntityDb.sln --no-restore -c Release /p:Version=${{ needs.extract.outputs.version }}
- name: Publish to Nuget.org
run: dotnet nuget push */**.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
- name: Publish to Stable
run: dotnet nuget push */**.nupkg -s ${{ secrets.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }}

0 comments on commit ce24593

Please sign in to comment.