Skip to content

Commit ce24593

Browse files
chore: generic publishing
makes it easy to fork and publish to your own nuget source without modifications to the workflow files
1 parent 44eb07a commit ce24593

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
types:
44
- published
55

6-
name: Publish to Nuget.org
6+
name: Publish to Stable
77

88
jobs:
99
extract:
@@ -17,9 +17,10 @@ jobs:
1717
env:
1818
GITHUB_TOKEN: ${{ github.token }}
1919

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

0 commit comments

Comments
 (0)