Skip to content

Commit

Permalink
Updated dotnet version and nuget push command
Browse files Browse the repository at this point in the history
The dotnet version used in the workflow files has been updated from 7.x to 8.x. The nuget push command has also been modified to include the api-key and source directly in the command, instead of setting them as environment variables.
  • Loading branch information
michaelstonis committed Oct 11, 2024
1 parent bc0c565 commit 6166515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/nuget-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.x"
source-url: https://nuget.pkg.github.com/theeightbot/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
dotnet-version: "8.x"

- name: Install MAUI Workloads
run: dotnet workload install maui --ignore-failed-sources
Expand All @@ -48,7 +45,7 @@ jobs:
path: ${{ env.NuGetDirectory }}/*.nupkg

- name: Publish the package to GPR
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --api-key "${{secrets.GITHUB_TOKEN}}" --source https://nuget.pkg.github.com/theeightbot/index.json

- name: Publish the package to NuGet
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
7 changes: 2 additions & 5 deletions .github/workflows/nuget-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.x"
source-url: https://nuget.pkg.github.com/theeightbot/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
dotnet-version: "8.x"

- name: Install MAUI Workloads
run: dotnet workload install maui --ignore-failed-sources
Expand All @@ -48,7 +45,7 @@ jobs:
path: ${{ env.NuGetDirectory }}/*.nupkg

- name: Publish the package to GPR
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --api-key "${{secrets.GITHUB_TOKEN}}" --source https://nuget.pkg.github.com/theeightbot/index.json

- name: Publish the package to NuGet
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json

0 comments on commit 6166515

Please sign in to comment.