Skip to content

Commit

Permalink
Merge pull request #151 from jihadkhawaja/net8.0
Browse files Browse the repository at this point in the history
Update Nuget.yml
  • Loading branch information
jihadkhawaja authored Mar 31, 2024
2 parents 1959a87 + 01a1795 commit a124054
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/Nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
6.0.x
7.0.x
8.0.x
- name: Prep packages
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
run: dotnet pack src/jihadkhawaja.mobilechat.client/jihadkhawaja.mobilechat.client.csproj -p:Version=${VERSION} -c Release
- name: Upload NuGet package to GitHub
Expand All @@ -61,22 +63,12 @@ jobs:
uses: actions/[email protected]
with:
name: nugetPackageClient
- name: Prep packages
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: 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

#Build/pack the project
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Build and Pack NuGet package
run: dotnet pack src/jihadkhawaja.mobilechat.server/jihadkhawaja.mobilechat.server.csproj -p:Version=${VERSION} -c Release
- name: Upload NuGet package to GitHub
Expand All @@ -90,8 +82,6 @@ jobs:
uses: actions/[email protected]
with:
name: nugetPackageServer
- name: Prep packages
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: Push package to GitHub packages
run: dotnet nuget push nugetPackageServer/*.nupkg --api-key ${{ secrets.Egroo_GITHUB_PACKAGE }} --source "github"

Expand Down

0 comments on commit a124054

Please sign in to comment.