Skip to content

Remove BrowserFetcher.DefaultChromiumRevision from code examples (#2317) #13

Remove BrowserFetcher.DefaultChromiumRevision from code examples (#2317)

Remove BrowserFetcher.DefaultChromiumRevision from code examples (#2317) #13

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