Skip to content

Ensure existing targets are attached to pages (#2670) #29

Ensure existing targets are attached to pages (#2670)

Ensure existing targets are attached to pages (#2670) #29

name: PushToNugetOrg
on:
workflow_dispatch:
push:
tags:
- v*
env:
DOTNET_VERSION: '8.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