From 6166515d33fa92d823a487d529e81d34d040eb98 Mon Sep 17 00:00:00 2001 From: Michael Stonis Date: Fri, 11 Oct 2024 13:41:20 -0500 Subject: [PATCH] Updated dotnet version and nuget push command 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. --- .github/workflows/nuget-beta.yml | 7 ++----- .github/workflows/nuget-prod.yml | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nuget-beta.yml b/.github/workflows/nuget-beta.yml index 325d216..e497f92 100644 --- a/.github/workflows/nuget-beta.yml +++ b/.github/workflows/nuget-beta.yml @@ -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 @@ -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 diff --git a/.github/workflows/nuget-prod.yml b/.github/workflows/nuget-prod.yml index 3fb4f55..451eb68 100644 --- a/.github/workflows/nuget-prod.yml +++ b/.github/workflows/nuget-prod.yml @@ -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 @@ -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