Browse Source

Avoid installing .NET in the push-packages-myget/push-packages-nuget build jobs

pull/1795/head
Kévin Chalet 3 years ago
parent
commit
d8d64dc7cc
  1. 17
      .github/workflows/build.yml

17
.github/workflows/build.yml

@ -47,11 +47,6 @@ jobs:
6.0.408
7.0.302
- name: Setup NuGet
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.11.0'
# Arcade only allows the revision to contain up to two characters, and GitHub Actions does not roll-over
# build numbers every day like Azure DevOps does. To balance these two requirements, set the official
# build ID to be the same format as the built-in default from Arcade, except with the revision number
@ -138,8 +133,10 @@ jobs:
with:
name: packages-windows
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Setup NuGet
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.11.0'
- name: Push packages to MyGet.org
run: nuget push "*.nupkg" -ApiKey ${{ secrets.MYGET_API_KEY }} -SkipDuplicate -Source https://www.myget.org/F/openiddict/api/v3/index.json
@ -154,8 +151,10 @@ jobs:
with:
name: packages-windows
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Setup NuGet
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.11.0'
- name: Push packages to NuGet.org
run: nuget push "*.nupkg" -ApiKey ${{ secrets.NUGET_API_KEY }} -SkipDuplicate -Source https://api.nuget.org/v3/index.json

Loading…
Cancel
Save