Skip to content

Commit

Permalink
Publish all nuget packages to GitHub packages on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jahav committed Sep 1, 2024
1 parent 4aa9921 commit 76d37d4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ jobs:
name: nuget-packages
path: nuget_packages/*.nupkg

- name: Publish
- name: Publish Core
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push src/DataIsland.Core/bin/Release/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/jahav/index.json"
run: dotnet nuget push nuget_packages/DataIsland.Core.*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/jahav/index.json"

- name: Publish SqlServer
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push nuget_packages/DataIsland.SqlServer.*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/jahav/index.json"

- name: Publish EfCore
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push nuget_packages/DataIsland.EfCore.*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/jahav/index.json"

- name: Publish xUnit.v3
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push nuget_packages/DataIsland.xUnit.v3.*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/jahav/index.json"

0 comments on commit 76d37d4

Please sign in to comment.