|
4 | 4 | release: |
5 | 5 | types: |
6 | 6 | - published |
| 7 | + push: |
7 | 8 |
|
8 | 9 | env: |
9 | 10 | DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 |
@@ -68,33 +69,33 @@ jobs: |
68 | 69 | - name: Validate package |
69 | 70 | run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NuGetDirectory }}/*.nupkg") --excluded-rule-ids 101,111,74,72,61,12 |
70 | 71 |
|
71 | | - publish: |
72 | | - runs-on: ubuntu-latest |
73 | | - needs: |
74 | | - - create_nuget |
75 | | - - validate_nuget |
76 | | - steps: |
77 | | - # Download the NuGet package created in the previous job |
78 | | - - uses: actions/download-artifact@v4 |
79 | | - with: |
80 | | - name: nuget |
81 | | - path: ${{ env.NuGetDirectory }} |
| 72 | + # publish: |
| 73 | + # runs-on: ubuntu-latest |
| 74 | + # needs: |
| 75 | + # - create_nuget |
| 76 | + # - validate_nuget |
| 77 | + # steps: |
| 78 | + # # Download the NuGet package created in the previous job |
| 79 | + # - uses: actions/download-artifact@v4 |
| 80 | + # with: |
| 81 | + # name: nuget |
| 82 | + # path: ${{ env.NuGetDirectory }} |
82 | 83 |
|
83 | | - # Install the .NET SDK indicated in the global.json file |
84 | | - - name: Setup .NET Core |
85 | | - uses: actions/setup-dotnet@v4 |
86 | | - with: |
87 | | - dotnet-version: ${{ env.DOTNET_VERSION }} |
| 84 | + # # Install the .NET SDK indicated in the global.json file |
| 85 | + # - name: Setup .NET Core |
| 86 | + # uses: actions/setup-dotnet@v4 |
| 87 | + # with: |
| 88 | + # dotnet-version: ${{ env.DOTNET_VERSION }} |
88 | 89 |
|
89 | | - # Publish all NuGet packages to NuGet.org |
90 | | - - name: Publish NuGet package |
91 | | - run: | |
92 | | - foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) { |
93 | | - dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json |
94 | | - } |
| 90 | + # # Publish all NuGet packages to NuGet.org |
| 91 | + # - name: Publish NuGet package |
| 92 | + # run: | |
| 93 | + # foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) { |
| 94 | + # dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json |
| 95 | + # } |
95 | 96 |
|
96 | | - - name: Upload Release Asset |
97 | | - uses: shogo82148/actions-upload-release-asset@v1 |
98 | | - with: |
99 | | - upload_url: ${{ github.event.release.upload_url }} |
100 | | - asset_path: ${{ env.NuGetDirectory }}/*.nupkg |
| 97 | + # - name: Upload Release Asset |
| 98 | + # uses: shogo82148/actions-upload-release-asset@v1 |
| 99 | + # with: |
| 100 | + # upload_url: ${{ github.event.release.upload_url }} |
| 101 | + # asset_path: ${{ env.NuGetDirectory }}/*.nupkg |
0 commit comments