Skip to content

Commit 3819e9d

Browse files
Adding workflow for publish
1 parent 7b01577 commit 3819e9d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
workflow_dispatch:
55
inputs:
66
package-name:
7-
description: 'Package to Publish (utils/selenium)'
7+
description: 'Package to Publish (utils/selenium/playwright)'
88
required: true
99
type: choice
1010
options:
1111
- lambdatest-sdk-utils
1212
- lambdatest-selenium-driver
13+
- lambdatest-playwright-driver
1314
default: 'lambdatest-sdk-utils'
1415

1516
jobs:
@@ -40,3 +41,11 @@ jobs:
4041
dotnet build ./LambdaTest.Selenium.Driver --configuration Release --no-restore
4142
dotnet pack ./LambdaTest.Selenium.Driver --configuration Release --no-build --output ./LambdaTest.Selenium.Driver/nupkgs
4243
dotnet nuget push ./LambdaTest.Selenium.Driver/nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
44+
45+
- name: Build and publish LambdaTest.Playwright.Driver
46+
if: github.event.inputs.package-name == 'lambdatest-playwright-driver'
47+
run: |
48+
dotnet restore ./LambdaTest.Playwright.Driver
49+
dotnet build ./LambdaTest.Playwright.Driver --configuration Release --no-restore
50+
dotnet pack ./LambdaTest.Playwright.Driver --configuration Release --no-build --output ./LambdaTest.Playwright.Driver/nupkgs
51+
dotnet nuget push ./LambdaTest.Playwright.Driver/nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)