44 push :
55 branches :
66 - ' **'
7- # paths:
8- # - 'src/**'
7+ paths :
8+ - ' src/**'
99
1010permissions :
1111 actions : read
@@ -153,10 +153,7 @@ jobs:
153153 name : ' Publish'
154154 uses : ./.github/workflows/release-nuget-package.yml
155155 needs : [global-variables, pack]
156-
157-
158156 secrets : inherit
159-
160157 with :
161158 artifact-run-id : ${{ needs.global-variables.outputs.github-run-id }}
162159 artifact-name : ${{ needs.pack.outputs.package-artifact-name }}
@@ -168,50 +165,47 @@ jobs:
168165 name : ' Publish'
169166 uses : ./.github/workflows/release-nuget-package.yml
170167 needs : [global-variables, pack]
171-
172168 secrets : inherit
173-
174169 with :
175170 artifact-run-id : ${{ needs.global-variables.outputs.github-run-id }}
176171 artifact-name : ${{ needs.pack.outputs.package-artifact-name }}
177172 nuget-feed-server : ' NuGet'
178173 environment : ' NuGet'
179174
180- # benchmark:
181- # if: ${{ github.env.is_release || vars.BENCHMARKDOTNET_RUN_OVERRIDE == 'true' }}
182- # name: Benchmark with .NET CLI on ${{ matrix.os }}
183- # needs: [build]
184- # strategy:
185- # matrix:
186- # os: [ubuntu-latest, windows-latest, macos-latest]
187- # runs-on: ${{ matrix.os }}
188- # steps:
189- # - name: 'Checkout ${{ github.head_ref || github.ref }}'
190- # uses: actions/checkout@v4
191- # - name: Install .NET SDK
192- # uses: actions/setup-dotnet@v4
193- # with:
194- # dotnet-version: |
195- # 6.x
196- # 8.x
197- # 9.x
198- # - name: Download Build
199- # uses: actions/download-artifact@v4
200- # with:
201- # name: build
202- # - name: Benchmark
203- # working-directory: ${{ vars.BENCHMARKDOTNET_WORKING_DIRECTORY }}
204- # run: dotnet run --configuration ${{ env.build-configuration }} /p:Platform=${{ env.build-platform }} --framework ${{ vars.DEFAULT_BUILD_FRAMEWORK }} --runtimes ${{ vars.BENCHMARKDOTNET_RUNTIMES }} --filter ${{ vars.BENCHMARKDOTNET_FILTER }} --exporters GitHub --memory --artifacts ${{ runner.temp }}/benchmarks/ --join
205- # - name: Upload Benchmark Results
206- # uses: actions/upload-artifact@v4
207- # with:
208- # name: benchmark-${{ matrix.os }}
209- # path: |
210- # ${{ runner.temp }}/benchmarks/**/*-report-github.md
211- # - name: Write Benchmark Summary
212- # shell: bash
213- # run: cat **/*-report-github.md > $GITHUB_STEP_SUMMARY
214- # working-directory: ${{ runner.temp }}/benchmarks/
175+ benchmark :
176+ if : ${{ github.env.is_release || vars.BENCHMARKDOTNET_RUN_OVERRIDE == 'true' }}
177+ name : Benchmark with .NET CLI on ${{ matrix.os }}
178+ needs : [build]
179+ strategy :
180+ matrix :
181+ os : [ubuntu-latest, windows-latest, macos-latest]
182+ runs-on : ${{ matrix.os }}
183+ steps :
184+ - name : ' Checkout ${{ github.head_ref || github.ref }}'
185+ uses : actions/checkout@v4
186+ - name : Install .NET SDK
187+ uses : actions/setup-dotnet@v4
188+ with :
189+ dotnet-version : |
190+ 8.x
191+ 9.x
192+ - name : Download Build
193+ uses : actions/download-artifact@v4
194+ with :
195+ name : build
196+ - name : Benchmark
197+ working-directory : ${{ vars.BENCHMARKDOTNET_WORKING_DIRECTORY }}
198+ run : dotnet run --configuration ${{ env.build-configuration }} /p:Platform=${{ env.build-platform }} --framework ${{ vars.DEFAULT_BUILD_FRAMEWORK }} --runtimes ${{ vars.BENCHMARKDOTNET_RUNTIMES }} --filter ${{ vars.BENCHMARKDOTNET_FILTER }} --exporters GitHub --memory --artifacts ${{ runner.temp }}/benchmarks/ --join
199+ - name : Upload Benchmark Results
200+ uses : actions/upload-artifact@v4
201+ with :
202+ name : benchmark-${{ matrix.os }}
203+ path : |
204+ ${{ runner.temp }}/benchmarks/**/*-report-github.md
205+ - name : Write Benchmark Summary
206+ shell : bash
207+ run : cat **/*-report-github.md > $GITHUB_STEP_SUMMARY
208+ working-directory : ${{ runner.temp }}/benchmarks/
215209
216210 # publish-docs:
217211 # if: ${{ github.env.is_release && !github.env.is_preview }}
@@ -251,50 +245,3 @@ jobs:
251245 # - name: Deploy to GitHub Pages
252246 # id: deployment
253247 # uses: actions/deploy-pages@v4
254-
255- # publish-package-internal:
256- # if: ${{ !github.env.is_release }}
257- # name: Publish package with .NET CLI
258- # needs: [pack]
259- # environment:
260- # name: private-nuget-feed
261- # runs-on: ubuntu-latest
262- # steps:
263- # - name: 'Checkout ${{ github.head_ref || github.ref }}'
264- # uses: actions/checkout@v4
265- # - name: Dotnet Setup
266- # uses: actions/setup-dotnet@v4
267- # with:
268- # dotnet-version: ${{ env.dotnet-sdk-version }}
269- # - name: Download Packages
270- # uses: actions/download-artifact@v4
271- # with:
272- # name: package
273- # path: ${{ runner.temp }}/packages/
274- # - run: |
275- # dotnet nuget add source ${{ secrets.PRIVATE_NUGET_PACKAGE_FEED_URL }} --name private-feed --username username --password ${{ secrets.PRIVATE_NUGET_PACKAGE_FEED_API_KEY }} --store-password-in-clear-text
276- # dotnet nuget push **/*.nupkg --source private-feed --api-key ${{ secrets.PRIVATE_NUGET_PACKAGE_FEED_API_KEY }}
277- # working-directory: ${{ runner.temp }}/packages/
278-
279- # release-package:
280- # if: ${{ github.env.is_release }}
281- # name: Release package with .NET CLI
282- # needs: [pack, test]
283- # environment:
284- # name: public-nuget-feed
285- # runs-on: ubuntu-latest
286- # steps:
287- # - name: 'Checkout ${{ github.head_ref || github.ref }}'
288- # uses: actions/checkout@v4
289- # - name: Dotnet Setup
290- # uses: actions/setup-dotnet@v4
291- # with:
292- # dotnet-version: ${{ env.dotnet-sdk-version }}
293- # - name: Download Packages
294- # uses: actions/download-artifact@v4
295- # with:
296- # name: package
297- # path: ${{ runner.temp }}/packages/
298- # - run: |
299- # dotnet nuget push **/*.nupkg --source ${{ vars.PUBLIC_NUGET_PACKAGE_FEED_URL }} --api-key ${{ secrets.PUBLIC_NUGET_PACKAGE_FEED_API_KEY }}
300- # working-directory: ${{ runner.temp }}/packages/
0 commit comments