Remove BrowserFetcher.DefaultChromiumRevision from code examples (#2317) #13
Workflow file for this run
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: PushToNugetOrg | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v* | |
env: | |
DOTNET_VERSION: '7.0.x' # The .NET SDK version to use | |
jobs: | |
PushToNugetOrg: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install dependencies | |
run: | | |
dotnet restore lib/PuppeteerSharp.sln | |
dotnet dev-certs https -ep lib/PuppeteerSharp.TestServer/testCert.cer | |
- name: Build | |
run: | | |
dotnet build lib/PuppeteerSharp.sln --configuration Release --no-restore | |
ls ./lib/PuppeteerSharp/bin/Release | |
- name: NugetPush to nuget.org | |
env: | |
NUGET_TOKEN_EXISTS: ${{ secrets.NUGET_API_KEY }} | |
if: env.NUGET_TOKEN_EXISTS != '' | |
run: | | |
dotnet nuget push ./lib/PuppeteerSharp/bin/Release/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json |