Publish nightly nupkg / Fixed GitHub workflow report for failed tests (#2653) * changed target framework to .net 8.0 * Added a failing test * Update run-tests.yaml * try again * changed yaml files * Revert "try again" This reverts commit 1995f60de5d266087e6c88ad31f3b655ec7277ae. * Revert "Added a failing test" This reverts commit 1bcb1a19029d574191436c4627c8449b8b18f525. * Final yaml files * added target framework back for PR #189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-nightly | |
run-name: Publish nightly nupkg / ${{ github.event.head_commit.message }} | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'dotnet/BenchmarkDotNet' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set date | |
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV | |
- name: Pack | |
run: ./build.cmd pack /p:VersionSuffix=nightly.$DATE.$GITHUB_RUN_NUMBER | |
- name: Upload nupkg to artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nupkgs | |
path: "**/*.*nupkg" | |
- name: Publish nupkg | |
env: | |
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }} | |
run: ./.dotnet/dotnet nuget push **/*.nupkg --source https://www.myget.org/F/benchmarkdotnet/api/v3/index.json --api-key $MYGET_API_KEY --timeout 600 |