-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from jihadkhawaja/net8.0
Update Nuget.yml
- Loading branch information
Showing
1 changed file
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,46 +48,60 @@ jobs: | |
6.0.x | ||
7.0.x | ||
8.0.x | ||
- name: Prep packages | ||
- name: Nuget add source | ||
run: dotnet nuget add source --username jihadkhawaja --password ${{ secrets.Egroo_GITHUB_PACKAGE }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/jihadkhawaja/index.json" | ||
- name: Build and Pack NuGet package | ||
|
||
#Push NuGet package | ||
- name: Pack package | ||
run: dotnet pack src/jihadkhawaja.mobilechat.client/jihadkhawaja.mobilechat.client.csproj -p:Version=${VERSION} -c Release | ||
- name: Upload NuGet package to GitHub | ||
|
||
- name: Upload NuGet Client package to artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nugetPackageClient | ||
path: src/jihadkhawaja.mobilechat.client/bin/Release/ | ||
|
||
#Push NuGet package to GitHub packages | ||
- name: Download nuget package artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: nugetPackageClient | ||
- name: Push package to GitHub packages | ||
run: dotnet nuget push nugetPackageClient/*.nupkg --api-key ${{ secrets.Egroo_GITHUB_PACKAGE }} --source "github" | ||
|
||
- name: Publish nuget package | ||
run: dotnet nuget push nugetPackageClient/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
||
- name: Build and Pack NuGet package | ||
#Push NuGet package | ||
- name: Pack package | ||
run: dotnet pack src/jihadkhawaja.mobilechat.server/jihadkhawaja.mobilechat.server.csproj -p:Version=${VERSION} -c Release | ||
|
||
- name: Upload NuGet package to GitHub | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nugetPackageServer | ||
path: src/jihadkhawaja.mobilechat.server/bin/Release/ | ||
|
||
#Push NuGet package to GitHub packages | ||
PublishClient: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Download nuget client package artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: nugetPackageClient | ||
|
||
- name: Push client package to GitHub packages | ||
run: dotnet nuget push nugetPackageClient/*.nupkg --api-key ${{ secrets.Egroo_GITHUB_PACKAGE }} --source "github" | ||
|
||
- name: Publish nuget client package | ||
run: dotnet nuget push nugetPackageClient/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
||
PublishServer: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Download nuget package artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: nugetPackageServer | ||
|
||
- name: Push package to GitHub packages | ||
run: dotnet nuget push nugetPackageServer/*.nupkg --api-key ${{ secrets.Egroo_GITHUB_PACKAGE }} --source "github" | ||
|
||
- name: Publish nuget package | ||
run: dotnet nuget push nugetPackageServer/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
||
|
||
Release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|