@@ -57,25 +57,25 @@ jobs:
5757 Plugins/Reqnroll.Actions.Appium/Reqnroll.Actions.Appium/bin/Release/**/*.nupkg
5858 Plugins/Reqnroll.Actions.Configuration/Reqnroll.Actions.Configuration.Generation/bin/Release/**/*.nupkg
5959
60- # release:
61- # runs-on: windows-latest
62- # env:
63- # DOTNET_NOLOGO: true
64- # needs: build
65- # environment: NuGet.org
66- # if: github.ref == 'refs/heads/main'
67- # steps:
68- # # Authenticates packages to push to nuget.org.
69- # # It's only the way to push a package to nuget.org feed for macOS/Linux machines due to API key config store limitations.
70- # - name: Download a single artifact
71- # uses: actions/download-artifact@v2
72- # with:
73- # name: NuGet-Package
74- # - uses: actions/setup-dotnet@v1
75- # with:
76- # dotnet-version: '6.0.x'
77- # - name: Publish the package to nuget.org
78- # shell: pwsh
79- # env:
80- # NUGET_AUTH_TOKEN: ${{ secrets.REQNROLL_ACTIONS_NUGET_TOKEN }}
81- # run: dotnet nuget push "**/*.nupkg" -k "$env:NUGET_AUTH_TOKEN" -s "https://api.nuget.org/v3/index.json" --skip-duplicate
60+ release :
61+ runs-on : windows-latest
62+ env :
63+ DOTNET_NOLOGO : true
64+ needs : build
65+ environment : NuGet.org
66+ if : github.ref == 'refs/heads/main'
67+ steps :
68+ # Authenticates packages to push to nuget.org.
69+ # It's only the way to push a package to nuget.org feed for macOS/Linux machines due to API key config store limitations.
70+ - name : Download a single artifact
71+ uses : actions/download-artifact@v2
72+ with :
73+ name : NuGet-Package
74+ - uses : actions/setup-dotnet@v1
75+ with :
76+ dotnet-version : ' 6.0.x'
77+ - name : Publish the package to nuget.org
78+ shell : pwsh
79+ env :
80+ NUGET_AUTH_TOKEN : ${{ secrets.REQNROLL_ACTIONS_NUGET_TOKEN }}
81+ run : dotnet nuget push "**/*.nupkg" -k "$env:NUGET_AUTH_TOKEN" -s "https://api.nuget.org/v3/index.json" --skip-duplicate
0 commit comments