File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow is triggered when a GitHub release is created.
2+ # It can also be run manually to re-publish to NuGet in case it failed for some reason.
3+ # You can run this workflow by navigating to https://www.github.com/browserbase/stagehand-net/actions/workflows/publish-nuget.yml
4+ name : Publish to NuGet
5+ on :
6+ workflow_dispatch :
7+ release :
8+ types : [published]
9+ jobs :
10+ publish :
11+ name : publish
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v6
16+
17+ - name : Set up .NET
18+ uses : actions/setup-dotnet@v5
19+ with :
20+ dotnet-version : ' 8.0.x'
21+
22+ - name : Build and pack
23+ run : dotnet pack
24+ --configuration Release
25+ --output "${{github.workspace}}/artifacts/packages"
26+
27+ - name : Publish package to nuget.org
28+ run : dotnet nuget push
29+ $(find ${{ github.workspace }}/artifacts/packages/*.nupkg ! -name "*.symbols.nupkg")
30+ --source https://api.nuget.org/v3/index.json
31+ --api-key $NUGET_API_KEY
32+ env :
33+ NUGET_API_KEY : ${{ secrets.STAGEHAND_NUGET_API_KEY || secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 11configured_endpoints : 8
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-8fbb3fa8f3a37c1c7408de427fe125aadec49f705e8e30d191601a9b69c4cc41.yml
33openapi_spec_hash : 48b4dfac35a842d7fb0d228caf87544e
4- config_hash : 242651c4871c2869ba3c2e3d337505b9
4+ config_hash : 7386d24e2f03a3b2a89b3f6881446348
Original file line number Diff line number Diff line change @@ -67,9 +67,10 @@ Most existing browser automation tools either require you to write low-level cod
6767
6868## Installation
6969
70+ Install the package from [ NuGet] ( https://www.nuget.org/packages/Stagehand ) :
71+
7072``` bash
71- git clone git@github.com:browserbase/stagehand-net.git
72- dotnet add reference stagehand-net/src/Stagehand
73+ dotnet add package Stagehand
7374```
7475
7576## Requirements
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ internal static async IAsyncEnumerable<T> Enumerate<T>(
3232 continue ;
3333 }
3434
35- if ( item . Data . StartsWith ( "finished" ) )
35+ if ( item . Data . StartsWith ( "{ \" data \" :{ \" status \" : \" finished\" " ) )
3636 {
3737 // In this case we don't break because we still want to iterate through the full stream.
3838 done = true ;
You can’t perform that action at this time.
0 commit comments